From 81dd64c1bb76ba8bbe4029d426e2b3f8dfc844e7 Mon Sep 17 00:00:00 2001 From: Noella Marie Chartine Uwase <141454615+Chartine02@users.noreply.github.com> Date: Mon, 10 Feb 2025 21:59:59 +0000 Subject: [PATCH] fix(curriculum): update last question for let and const lecture (#58694) --- .../672d49959621885e9d3e672c.md | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md b/curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md index 887da5e0df2..3d9d03b1539 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-introduction-to-javascript/672d49959621885e9d3e672c.md @@ -50,35 +50,43 @@ Think about what `const` stands for. ## --text-- -Which scenario is best suited for using `let` instead of `const`? +Which of the following is the correct way to assign the number `100` to a constant named `maxScore`? ## --answers-- -When you need to declare a configuration value that shouldn't change. +```js +const maxScore === 100; +``` ### --feedback-- -Think about when you'd want to update a variable's value. +Refer to the end of the video where this was discussed. --- -When you want to track a value that will change during program execution. +```js +const maxScore = 100; +``` --- -When you want to declare a variable but don't want it to be accessible in a specific block of code. +```js +const maxScore <= 100; +``` ### --feedback-- -Think about when you'd want to update a variable's value. +Refer to the end of the video where this was discussed. --- -When you want to declare a function. +```js +const maxScore == 100; +``` ### --feedback-- -Think about when you'd want to update a variable's value. +Refer to the end of the video where this was discussed. ## --video-solution--