โ† 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 loop is best for repeating an action a set number of times, like 10 times?

    Answer: for loop

    A for loop repeats code a chosen number of times.

  2. What does the length property tell you about an array?

    Answer: How many items it has

    The length property gives the number of items in an array.

  3. Which code adds the item "cat" to the end of an array called pets?

    Answer: pets.push("cat")

    The push() method adds a new item to the end of an array.

  4. What is the first index number of any array in JavaScript?

    Answer: 0

    Arrays start counting positions at 0, not 1.

  5. What does an if statement let your program do?

    Answer: Make a decision

    An if statement runs code only when a condition is true.

  6. Which symbol means "is equal to" when comparing values in JavaScript?

    Answer: ===

    Three equal signs check if two values are truly equal.

  7. What does a while loop do?

    Answer: Repeats code while a condition stays true

    A while loop keeps running as long as its condition is true.