Statement Terminator
Question
Fill in the blank to properly terminate this statement in JavaScript.
Code
let x = 5___
Hint
In JavaScript, C, and Java, statements end with this punctuation.
Explanation
The semicolon (;) terminates a statement in JavaScript, C, Java, and many other languages. It tells the interpreter/compiler that the statement is complete. JavaScript has automatic semicolon insertion (ASI), but explicitly writing semicolons is best practice to avoid subtle bugs.
Related Resources
Related Lessons
- How Programs Work
Learn how programs work.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.