Code correction

Report a typo

Change the code so that the result is the new global value.

Write a program in JavaScript
myVar = "global";

function myFunc() {
console.log(myVar);
}

myFunc();
___

Create a free account to access the full topic