Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mshumer/88f8797816a26ca11f28766399875d22 to your computer and use it in GitHub Desktop.
Save mshumer/88f8797816a26ca11f28766399875d22 to your computer and use it in GitHub Desktop.
/*(<seed> //write a nodejs javascript function to count to a number between 34 and 98 and say Hello World.
//but try to avoid this error: Unexpected end of input
</seed>)
<stop>});</stop>
<codeType>javascriptServer</codeType>*/
//var count = 34;
//
//function sayHello() {
// console.log('Hello World');
//}
//for (var i = 0; i < 100; i++) {
// if (count < 98) {
// count++;
// sayHello();
// } else {
// break; // or throw error? or use continue? or set a flag to end loop? or add an "else
/*<output>{
"console": {}
}
</output>*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment