セクション 3. 章 11
single
Constant 3/3
メニューを表示するにはスワイプしてください
const Does Not Allow Hoisting
As discussed in the previous chapter, let does not allow hoisting i.e. we cannot use a variable before the declaration. Just like let we can not use hoisting with the const.it is only supported with var.
123MYPLANET = 'earth'; console.log(MYPLANET); const MYPLANET;
タスク
スワイプしてコーディングを開始
Rearrange the following code to display the value of SALARY on the console.
解答
Summary:
- We can neither change the values of the
constvariables through reassignment nor we can redeclare them. - Value should be assigned to
constvariables at the time of declaration.
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 11
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください