Javascript try catch finally statement

Description

Javascript try catch finally statement


let j = 0;/* w w  w .  j  av a 2  s.  c  om*/
try {
    someFunction(var1);
} catch (e) {
    console.log (e.message);
}
finally {
    j = null;
}

console.log(j);



PreviousNext

Related