Lesson 8 level 8 not working
Create a global variable named a using let keyword and give value "Hello" to it.
Then, create a local variable named b using let keyword within the function body of greeting() function and give value "Studytonight" to it.
Click on the Run and you should get an exception in the output.
/ Add global variable a here*/
let a = "Hello";
function greeting() {
/* Add the local variable here/
let b = "Studytonight";
console.log(`${a} ${b}`);
}
greeting();
console.log(a + b);
Console panel is showing "try again"!
What should I do?