Scope in JavaScript

Scope means access to a variable within a program. We have different scopes since we have functions in a program. JavaScript also has a different scope for its variables such as, Root scope/ Parent scope Child scope Root Scope As the name suggests, it's the scope all variables are assigned by default outside a function. … Continue reading Scope in JavaScript