Created
December 16, 2021 02:51
-
-
Save mshumer/88f8797816a26ca11f28766399875d22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*(<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