You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,35 +50,43 @@ Think about what `const` stands for.
50
50
51
51
## --text--
52
52
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`?
54
54
55
55
## --answers--
56
56
57
-
When you need to declare a configuration value that shouldn't change.
57
+
```js
58
+
constmaxScore===100;
59
+
```
58
60
59
61
### --feedback--
60
62
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.
62
64
63
65
---
64
66
65
-
When you want to track a value that will change during program execution.
67
+
```js
68
+
constmaxScore=100;
69
+
```
66
70
67
71
---
68
72
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
+
constmaxScore <=100;
75
+
```
70
76
71
77
### --feedback--
72
78
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.
74
80
75
81
---
76
82
77
-
When you want to declare a function.
83
+
```js
84
+
constmaxScore==100;
85
+
```
78
86
79
87
### --feedback--
80
88
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.
0 commit comments