answer: In JavaScript, `var` is function-scoped and was traditionally used to declare variables. `let` and `const` are block-scoped. The key difference between `let` and `const` is that `let` allows for reassignment while `const` creates a read-only reference.
topics:
- 'Core'
- 'Intermediate'
- 'Beginner'
- question: What is the difference between `null` and `undefined`?
answer: The `null` is an assignment value. It can be assigned to a variable as a representation of no value. But the `undefined` is a primitive value that represents the absence of a value, or a variable that has not been assigned a value.
topics:
- 'Core'
- 'Intermediate'
- 'Beginner'
- question: What is the difference between `==` and `===`?
answer: equality-operator.md
topics:
- 'Core'
- 'Intermediate'
- 'Beginner'
- question: What are the different ways to declare a variable in JavaScript?
answer: There are three ways to declare a variable in JavaScript `var`, `let`, and `const`.
topics:
@ -48,4 +48,9 @@ questions:
topics:
- 'Core'
- 'Intermediate'
- question: What is ternary operator in JavaScript?