let and const these variables were introduced in ES6 as the old var is getting old... Now.. these let and const were block scoped variables unlike var which is global scoped. var scope = 'global'; var ifTrue = true; if (ifTrue) { ...

Markdown supported · ⌘↵ to post
No responses yet.