Explore Library
QuizAdvanced

Scope of var vs let and const

Understand how var is function-scoped while let and const are block-scoped.

Which statement correctly describes the scoping behavior of var, let, and const?