thank you. I will once I figure out how to ask it with a bit of knowledge. working through it
Being able to talk about code is an important part of being a coder, even explaining what you don’t understand. Quote the description if you need to. Quote the code that you don’t understand if you need to. But without that, we are left trying to explain everything.
There is nothing wrong with getting hung up on something - we’ve all been there. Asking questions is a good thing. But you have to ask the question to get an answer. If you don’t know how to ask a good question, then ask a bad one so you can get better at asking questions.
ok. code below. it is still giving me the error of - oopsGlobal should be a global variable and have a value of 5 - yet when I change it to 5 it says it is an error. it is not logical to me.
// Declare the myGlobal variable below this line
let myGlobal = 10;
function fun1() {
oopsGlobal = 10;
}
// 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();```