Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

throw new error(

try {
  throw "I'm Evil"
  console.log("You'll never reach to me", 123465)
} catch (e) {
  console.log(e); // I'm Evil
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #throw
ADD COMMENT
Topic
Name
5+7 =