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
Aucun commentaire:
Enregistrer un commentaire