O'Reilly logo
  • Lewis Grisby thinks this is interesting:

function squareRoot(number) { 'use strict'; if (number < 0) { throw new RangeError('You can't find the square root of negative numbers') } return Math.sqrt(number); };

From

Cover of JavaScript: Novice to Ninja, 2nd Edition

Note

Typo- Use a double quoted string because of the apostrophe.