FnQuiz

JavaScript functions

Pick one option from each list. After check, green means right and red shows the expected function.

  1. Which function writes a line to the console?

  2. Which function shows a browser alert box?

  3. Which function parses a string into an integer?

  4. Which function returns a random number from 0 to 1?

  5. Which function rounds a number down?

  6. Which function converts a value to a string?

  7. Which array method adds an item to the end?

  8. Which function schedules a callback after a delay?

  9. Which function parses a JSON string?

  10. Which function returns the current timestamp in milliseconds?