if passed a negative number throw a typeerror. javascript code example Example: js throw error throw new Error('Whoops!')