DEV Community

Discussion on: JS fundamentals: const vs var vs let?

Collapse
 
btlm profile image
btlm

Thanks for this publication.

I think you have doubled following code in var has no block scope section

if(true){
   var name = 'Peter Griffin';
}
console.log(name);

and probably not related screenshots.