by turhan-ergene
Test your JavaScript knowledge. The language that powers the web — from variables to type coercion.
JavaScript has three ways to declare a variable. var is the old way, with quirks around scope that trip up beginners. let declares a variable that can be reassigned later. const declares a binding that cannot be reassigned once set -- the value itself can still change if it is an object or array, but the name cannot be pointed at something else.
multiple choice
Ready to test yourself?
Sign up free to answer, score points, and build your streak.