return error syntax in javascript funtion' code example Example: js throw error throw new Error('Whoops!')