Message from JavaScript discussions

September 2018

— Nope, that'd mean it's hoisting to function scope. let and const don't hoist declaration


The message from this example still did not reached my brain: (function(){
const a = b = 3;

console.log(typeof b === 'undefined') // false
console.log(typeof a === 'undefined') // true

— Ok it takes the last assigned namespace to create a const... okay so be it.

— Not the closest char to const

— But still it should not be possible to not assign a const... tho...

— B is implicitly var here

— Try strict mode

— That does not make a diff

— Https://

— Yes it does

— Oh, wait

— The result is the same tho