Understanding JavaScript Dynamic Scope

58.4% Acceptance

In this lab, you will learn about dynamic scope in JavaScript by creating a function that demonstrates this concept. Unlike most programming languages, JavaScript has both lexical and dynamic scopes. Dynamic scope means that a variable used inside a function can be resolved when the function is called, based on the calling environment. In this exercise, you will create a JavaScript function that combines both the parameter value and a global variable to show dynamic scope in action.

Make sure you're default exporting the function