FnQuiz

JavaScript functions

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

80%

8 / 10 correct

Retake test
  1. Which function writes a line to the console?

    Correct

  2. Which function shows a browser alert box?

    Correct

  3. Which function parses a string into an integer?

    Correct

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

    Wrong · expected Math.random

  5. Which function rounds a number down?

    Correct

  6. Which function converts a value to a string?

    Correct

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

    Correct

  8. Which function schedules a callback after a delay?

    Correct

  9. Which function parses a JSON string?

    Correct

  10. Which function returns the current timestamp in milliseconds?

    Wrong · expected Date.now

Retake test