Print

console.log("Hello World");

Conditional

if(you_smart){
    console.log("learn nodejs");
} else {
    console.log("go away");
}

Loop

for(var count = 0; count < 10; count++){
    console.log(count);
}

Function

function print_info(arg1, arg2){
    console.log(arg1);
    console.log(arg2);
}