Genial!
Completion tasa mejorada a 2Sección 3. Capítulo 11
single
Constant 3/3
Desliza para mostrar el menú
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;
Tarea
Swipe to start coding
Rearrange the following code to display the value of SALARY on the console.
Solución
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.
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 11
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla