scrimba
Introduction to ES6+
Let & Const
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Let & Const
Expand for more info
index.js
run
preview
console
if (false) {
var example = 5;
}

console.log(example)

/*
var example;

if (false) {
example = 5;
}

*/
Console
ReferenceError: example is not defined (/index.js:7)
,
index.html
-3:52