Exception Handling Using Switch Case In Javascript