jeudi 15 mai 2014

How to cause core error classes?


Vote count:

0




There are six core Error classes in JavaScript:



EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError


It is simple to achieve ReferenceError and SyntaxError



a1.p;//ReferenceError
eval("(")//SyntaxError


But how to create the others?



asked 34 secs ago

IvanH

2,429





Aucun commentaire:

Enregistrer un commentaire