dev1 – 10 JS functions problem set

There are two pairs of HTML/JS files to be completed and submitted:

  • Random Color – Create a function randomColor() when called returns a random RGB color value like rgb(173, 65, 203).
  • Game – Create three functions startGame()endGame(), and checkGame(). Each function returns the boolean value of gameOver and should affect gameOver as the function name suggests.
  • Falling Down Stairs – Create a function fallingDownStairs(phrase) which takes a string value as an argument and gives a console.log output to the similarly named problem from last week.
  • Climbing the Mountain – Create a function climbMountain(phrase) which takes a string value as an argument and gives a console.log output to the similarly named problem from last week.

Leave a comment

Your email address will not be published. Required fields are marked *

css.php