Change the code so that the result is the new global value.
Scope of variables
Code correction
Report a typo
Write a program in JavaScript
myVar = "global";
function myFunc() {
console.log(myVar);
}
myFunc();
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.