Variables
Console
JavaScript Basics
Fix That Code!
Random
100

What is a variable?

A container that stores data.

100

What is the console used for?

The console is used to display messages, errors, and results—like a hidden notepad for debugging.

100

What is JavaScript?

A programming language used to make websites more interactive.

100

Fix this code: let name = Heschel;

Missing quotes around Heschel

100

What symbol do you put at the end of most lines in JavaScript?

;

200

Name the 3 keywords used to create a variable in JavaScript

let, const, var

200

How do you display "Hello World" in the console?

console.log("Hello World");

200

What symbol is used for exponents?

**

200

Fix this code: const pi = 3.14

Missing ;

200

What is a string in programming?

A sequence of characters (e.g., "hello").

300

What is the data type of: "Heschel"?

String

300

What’s the correct way to show the value of a variable named score in the console?

console.log(score);

300

What symbol is used for the remainder? (mod)

%

300

Fix That Code: let isRaining = "false";

false should not have quotes around it.
300

Name two types of data in JavaScript.

String, Boolean, Integer, Float

400

What data type is 1.3?

Float

400

How do you log both a string ("Score:") and a variable (points)?

console.log("Score: " + points);

400

What symbol(s) are used for a single-line comment?

//

400

Fix That Code: let 1stPlace = "winner";

The variable has to begin with a letter, not a number

400

What is a Boolean, give an example on the board by writing a line of code that contains a boolean.

A true/false value.

500

Write a variable called jeopardyGame and give it a value of true

let jeopardyGame = true;

500

On the board, write two lines of code that will display the message My school is Heschel in the console, using a variable named school.

let school = "Heschel";

console.log("My school is " + school);

500

What symbol(s) are used for a multi-line comment?

/* */

500

Fix that Code:

var greeting = 'Hello';
console.log('greeting' + ' class!');

Should not have quotes around the variable name.

500

Write a JavaScript program that:

  1. Creates a variable called score and sets it to 100

  2. Subtracts 25 from score

  3. Prints the final score to the console with the message: 'Final Score: [value]'"

let score = 100;
console.log("Final Score: " + (score - 25));