Menu Home

Error()

Hi everyone! And welcome to another exciting edition of Boring JavaScript! Today, we take on the Error() object. You’re all familiar with this – that wonderful CRASH you see when you’ve done something you shouldn’t have. But fear not, for I’ll show you what’s inside that Error() object, how to capture it and report on it, and how to create and throw your own! Everybody’s going to sleep on this one, so watch it now and avoid the crowds.