variables in javascript are not block scoped, but functionally scoped.
the let keyword introduces block scope to javascript.