• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.
    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

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

edenwax

Active Coder
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:

Ahh so close! The loop should be separated by semi-colons instead of commas. :p
for (var i = 0; i < heyThere.length; i++){
 

ivan.moony

Active Coder
And here is something in my own language I'm working on:

Code:
<<
    (
        greeting -> <<
            (
                a -> "Hello"
            ) /\ (
                b -> "Matt"
            ) /\ (
                a b
            )
        >>
    ) /\ (
        greeting "!"
    )
>>

The language is taking its own path towards logic waters.
 
Last edited:

Stewpid

New Coder
Hello World:
<html>
<head>
    <style>
        h1 {
            color: Orange;
                font-size: 50px;
                
        }
        .blood {
       color: Orange;
       text-shadow:
       4px 4px 1px #300000,
       4px 6px 1px #400000,
       4px 8px 1px #500000,
       4px 10px 1px #600000,
       4px 12px 1px #700000,
       4px 14px 1px #800000,
       4px 16px 1px #900000,
       4px 18px 1px #A00000,
       4px 20px 1px #B00000,
       4px 22px 1px #C00000,
       4px 24px 1px #D00000,
       4px 26px 1px #E00000,
       4px 28px 1px #F00000,
       4px 30px 1px #FA0000,
       4px 32px 1px #FB0000,
       4px 34px 1px #FC0000,
       4px 36px 1px #FD0000,
       4px 38px 1px #FE0000,
       4px 40px 2px #FF0000;
}
    </style>
    
    </head>
    <body>
        <h1 class="blood">OLLEH</h1>

    </body>
    <html/>
 

HeyItsJackM8

New Coder
Please remember to use our Code BBCode whenever you are pasting code into a thread/posts. You can read more here: https://codeforum.org/threads/how-to-post-your-code-into-threads.183/
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";
Code:
public class Main {
     public static void main(String args[]) {
          System.out.println("Hello Malcom! Hope your having a good day.");
     }
}
 
Last edited by a moderator:

simong1993

Active Coder
Staff Team
Guardian
PHP:
$Date = date("a"); 
$EveningCheck = date("h"); 
$Day = date("l");

// Checking for Morning, Afternoon and Evening

if ($Date == "am"){
    
    $A = "Good Morning";
    
}else if($EveningCheck > "17") {

    $A = "Good Evening";

}else{ 

    $A = "Good Afternoon";
    
}

// Nothing too fancy

echo $A . "Master Yoda, EEEEEEE i mean Malcolm. I hope you are having an amazing" . $Day;
 

ivan.moony

Active Coder
Code:
<<
    <<
        hello world
    >> -| <<
        <<sentence>>
        << <<word sentence>> |- <<sentence>> >>
        <<          <<word>> |- <<sentence>> >>

        <<  <<spanish>> |- <<word>>    >>
        <<   <<"hola">> |- <<spanish>> >>
        <<  <<"mundo">> |- <<spanish>> >>

        << <<"hello">> |- <<"hola">>  >>
        << <<"world">> |- <<"mundo">> >>
    >>
>>

Translates English to Spanish
 
Last edited:
Top