How to Throw Exception JavaScript?

How to Throw Exception JavaScript?