I can't get this to pass. What am I missing

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
// Declare the myGlobal variable below this line
let myGlobal = 10;

function fun1() {
// Assign 5 to oopsGlobal Here
oppsGlobal = 5;
}

// Only change code above this line

function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
  output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
  output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

Challenge: Global Scope and Functions

Link to the challenge:

check your spelling. Java is very sensitive to errors like this.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.