Throwing an Error in JavaScript June 24th, 2014 if($tabs.length !== $contents.length) throw new Error('ERROR TEXT');