javascript throw error stop execution code example Example: js throw error throw new Error('Whoops!')