Hacker News new | ask | show | jobs
by jazzyjackson 2815 days ago
This is not a bug, this is spec.

variables in javascript are not block scoped, but functionally scoped.

the let keyword introduces block scope to javascript.