js throw error function with error loctaion code example Example: js throw error throw new Error('Whoops!')