I am unable to let or const in my global

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

// Declare the myGlobal variable below this line

function fun1() {

  // Assign 5 to oopsGlobal Here

}

// 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 code so far**

// Declare your variable here
var myGlobal = 10;

function fun1() {
// Assign 5 to oopsGlobal Here
oopsGlobal = 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);
}
fun1();
fun2();
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Global Scope and Functions

Link to the challenge:

Hi Simon, Welcome to the forums.

What do you mean you are unable?
your code has the line:

// Declare your variable here
var myGlobal = 10;

simply write this line as

// Declare your variable here
let myGlobal = 10;