← All Online Coding Lessons Flashcard Decks

JavaScript Coding for Kids Flashcards

7 cards from real Online Coding Lessons practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 JavaScript Coding for Kids flashcards as text
  1. Which keyword creates a variable that can be changed later in JavaScript?

    Answer: let

    The let keyword makes a variable whose value can be reassigned.

  2. What will alert(2 + 3) show on the screen?

    Answer: 5

    JavaScript adds the numbers 2 and 3 to get 5.

  3. How do you write a single-line comment in JavaScript?

    Answer: // this is a comment

    Two slashes start a single-line comment that JavaScript ignores.

  4. Which symbol joins two pieces of text (strings) together?

    Answer: +

    The plus sign combines strings in a process called concatenation.

  5. What does the prompt() function do in a web page?

    Answer: Asks the user to type something

    The prompt() function shows a box where the user can type an answer.

  6. Which value is a boolean in JavaScript?

    Answer: true

    A boolean is either true or false.

  7. What punctuation usually ends a line of JavaScript code?

    Answer: Semicolon ;

    A semicolon marks the end of a JavaScript statement.