Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save un1crom/2f416661086b425789d92e55605b1137 to your computer and use it in GitHub Desktop.
Save un1crom/2f416661086b425789d92e55605b1137 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>javascript</codeType>*/
//create a function that takes two parameters, a number and a string, and prints the string that many times.
//write a function called 'repeat' with two parameters: a string and a number. The function should print the string as many times as the number indicates. For example, repeat('hello', 3) should print "hello hello hello".
/*<output/>*/
{
"console": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment