Complete the claypot function in index.js abiding by the following conditions
- From value
fromto valueto, print out all values in between. - However, if the value is divisible by 3, print
Clayinstead - If the value is divisible by 5, print
potinstead. - If the value is divisible by both 3 and 5, print
Claypotinstead. - The expected output should be like the one in
ExpectedOutput.png - Commit your code to
git
Notes:
- If you need to test, open
index.htmlin your browser, open up the development tools, and open up the console - Then, simply call the function out like this:
claypot(1, 30)