JavaScript Hot Topics

Error Handling →

var x=2;console.log(x;
console.log(add(2,3));
let message ;let x = // assigning any valuetry {if(x == "")  throw "is empty";if(x > 50)   throw "is too high";if(x < 10)  throw "is too low";}catch(err) {message = "x " + err;}finally {console.log("try catch is so easy");}

Read some more important things………..

(function()
{
console.log(“Hello World”);
})();

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store