console.log('End');
If you don't understand why typeof behaves differently for undeclared variables vs. TDZ variables, you don't know JS yet. you don 39-t know js yet
console.log('Start');