cul-2016 / quiz

11 stars 4 forks source link

improving code quality #18

Open sohilpandya opened 8 years ago

sohilpandya commented 8 years ago
minaorangina commented 8 years ago

Error handling

It's possible to take creating custom Errors to the next level. You can create your own errors with the specific type you're interested in, e.g.

new TypeError()
new SyntaxError()

Can also specify things like the filename and the line number, as outlined here