Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active February 2, 2021 05:43
Show Gist options
  • Save sandrabosk/6873d93f293080e896adc84dc212cddf to your computer and use it in GitHub Desktop.
Save sandrabosk/6873d93f293080e896adc84dc212cddf to your computer and use it in GitHub Desktop.
  1. Count from 1 to 50. If number is divisible by 5, it should output IRON, and if number is divisible by 7 it should output HACK. If number is divisible by 5 and 7, it should output IRONHACK. In any other case, it should output number.

  2. Use for...of:

  • Given the iterable let str='hello,dear.friend! nice,to.see you!', replace each dot and comma with space. The final output should be: hello dear friend! nice to see you!.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment