Variables Concepts
Coding Errors
Debugging Strategies
Output & Strings
Real-World Programming
100

Why are variables important in interactive programs?

Variables allow programs to change, update, and store information.

100

What type of error happens when code is typed incorrectly?

Syntax Error

100

Why is debugging an important skill for programmers? 

Debugging helps programmers find and fix coding mistakes.

100

Why is console.log() helpful during programming?

It helps programmers display and test information.

100

How might variables be used in a video game?

Variables can store scores, player names, health, or levels.

200

Analyze the statement below:

let score = "10";

Is the value a string or a number?

The value is a string because it is inside quotation marks.

200

What type of error happens when a variable is never created?

Reference Error

200

Analyze the code below:

 console.log(studentName);

What error could happen if studentName was never created?

A Reference Error could happen.

200

What is a string in JavaScript?

Text inside quotation marks.

200

Why is teamwork helpful during debugging?

Partners can help explain ideas and find mistakes.

300

Analyze the statement below:

let score = "10";

Is the value a string or a number?

The value is a string because it is inside quotation marks.

300

What type of error happens when a program runs but gives the wrong answer?

Logic Error

300

Analyze the code below:

let age = 14
console.log(age);

Identify the syntax mistake.

The semicolon is missing.

300

Why are quotation marks important in JavaScript strings?

Quotation marks tell the computer that the value is text.

300

What skills do programmers use during debugging?

Problem-solving, patience, critical thinking, and attention to detail.

400

How do variables help programmers solve problems?

Variables help programmers manage and organize information efficiently.

400

Why is identifying coding errors quickly important?

Finding errors quickly helps programmers fix problems and save time.

400

What habits help programmers become stronger debuggers?

Reading code carefully, testing step-by-step, and checking syntax.

400

How does console.log() help programmers during debugging?


It helps programmers check values and find mistakes.

400

Why is careful reading important in programming?


Careful reading helps programmers identify coding mistakes.

500

A programmer creates a variable but never uses it in the program. Why could this become a problem in larger programs?

Unused variables can make programs confusing, disorganized, and harder to debug.

500

let city = "Baltimore";
console.log(cities);

What type of coding error could occur and why? 


A Reference Error could occur because the variable cities was never created.

500

Why should programmers debug one problem at a time instead of changing many lines of code at once?


Fixing one problem at a time helps programmers clearly identify which mistake caused the issue.

500

Analyze the statement below:

let number = "25";

Why would this value be treated differently from the number 25?

The value is treated as text because it is inside quotation marks.

500

Why is patience considered an important skill during debugging and programming?

Programming mistakes can take time to solve, so patience helps programmers stay focused and continue problem-solving effectively.