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
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.
What will alert(2 + 3) show on the screen?
Answer: 5
JavaScript adds the numbers 2 and 3 to get 5.
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.
Which symbol joins two pieces of text (strings) together?
Answer: +
The plus sign combines strings in a process called concatenation.
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.
Which value is a boolean in JavaScript?
Answer: true
A boolean is either true or false.
What punctuation usually ends a line of JavaScript code?
Answer: Semicolon ;
A semicolon marks the end of a JavaScript statement.