Skip to content

Commit 81dd64c

Browse files
authored
fix(curriculum): update last question for let and const lecture (freeCodeCamp#58694)
1 parent 65b5636 commit 81dd64c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,43 @@ Think about what `const` stands for.
5050

5151
## --text--
5252

53-
Which scenario is best suited for using `let` instead of `const`?
53+
Which of the following is the correct way to assign the number `100` to a constant named `maxScore`?
5454

5555
## --answers--
5656

57-
When you need to declare a configuration value that shouldn't change.
57+
```js
58+
const maxScore === 100;
59+
```
5860

5961
### --feedback--
6062

61-
Think about when you'd want to update a variable's value.
63+
Refer to the end of the video where this was discussed.
6264

6365
---
6466

65-
When you want to track a value that will change during program execution.
67+
```js
68+
const maxScore = 100;
69+
```
6670

6771
---
6872

69-
When you want to declare a variable but don't want it to be accessible in a specific block of code.
73+
```js
74+
const maxScore <= 100;
75+
```
7076

7177
### --feedback--
7278

73-
Think about when you'd want to update a variable's value.
79+
Refer to the end of the video where this was discussed.
7480

7581
---
7682

77-
When you want to declare a function.
83+
```js
84+
const maxScore == 100;
85+
```
7886

7987
### --feedback--
8088

81-
Think about when you'd want to update a variable's value.
89+
Refer to the end of the video where this was discussed.
8290

8391
## --video-solution--
8492

0 commit comments

Comments
 (0)