Put in order · JavaScript and TypeScript course · Module 1: JavaScript Basics
Stages of Working with Variables
Arrange the stages of working with variables in JavaScript:
Items to put in order
- Use the variable in an expression
- Display the result using console.log()
- Assign a value (e.g., string, number)
- Declare a variable (let or const)
Show the answer
Correct order:
- Declare a variable (let or const)
- Assign a value (e.g., string, number)
- Use the variable in an expression
- Display the result using console.log()