Waiting for Singularity

Thoughts on science, tech and other preoccupations

JavaScript Flashcards

A flashcard app to test your knowledge of JavaScript statements. Question pool based on documentation from the friendly folks at Mozilla Developer Network.

Outputs:

    *** Test your knowledge of JavaScript statements!***
    Vocabulary based on vocabulary from Mozilla Developer Network
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference

    Q: Declares a read-only named constant.
    A: const
    Correct
    Enter any key to continue or 'x' to exit: r

    Q: Executes a statement if a specified condition is true. If the condition is false, another statement can be executed.
    A: while
    Incorrect. The answer is: if...else
    Enter any key to continue or 'x' to exit: y

    Q: A statement used to group zero or more statements and is delimited by a pair of curly brackets.
    A: block
    Correct
    Enter any key to continue or 'x' to exit: x