Skip to content

Instantly share code, notes, and snippets.

Avatar
😸
Starting on git hub

Nelson edoves

😸
Starting on git hub
View GitHub Profile
View divisibleby3.js
Hello; Hello World; World
Write a function that takes an integer and:
If the number is a multiple of 3, return "Hello".
If the number is a multiple of 5, return "World".
If the number is a multiple of both 3 and 5, return "Hello World".
helloWorld(3) "Hello"
helloWorld(5) "World"
You can’t perform that action at this time.