Question · JavaScript and TypeScript course · Module 1: JavaScript Basics
Code Blocks in JavaScript
What is a code block in JavaScript?
Answer options
- Multi-line comment
- A single statement ending with a semicolon
- A JavaScript file with .js extension
- A group of statements enclosed in curly braces { }
Show the answer
Correct answer:
- A group of statements enclosed in curly braces { }