Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fun activity Say hello... in a coding language!

Malcolm

Administrator
Administrator
Staff Team
Code+
Hello Coders!

Let's do something fun! This is supposed to be a fun way for us as a community to engage and learn from each other.

Okay, here's how it goes. You can decide what language you want to use, and all you have to say is "Hello, (person above)!" in the language that you picked ([UWSL][UWSL][UWSL]Using the BBCode function)[/UWSL][/UWSL][/UWSL].
So here's an example
C++:
std::cout << "Hello, Master Yoda";

You say Hello to the person above you
 
Last edited:
JavaScript:
var heyThere = ['Hello, ', 'My ', 'name ', 'is ']
var myName = "Matt"
var output = ""

for (var i = 0, i < heyThere.length, i++){
    output += heyThere[i];
}

output += myName + ".";
console.log(output);

Might be a bit convoluted, but it should work in theory. Just wanted to include a for loop lol. Been awhile since I messed with any code. :thinking:
 
Last edited:

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom