Hello,
I’m finding it hard to understand the try and catch errors. Please see below -
try {
let name = function() {
let myname = “Ejovi”;
return console.log('Hello ’ + mynam);
}
} catch (e) {
console.log(‘Really’)
}
I expect the code in the try block to return a reference error which will inturn make the code in the catch error execute. But then there is nothing in the console at all.