Using Math object to shorten scripts

Christian Heilmann talks of using the Math object in JavaScript in some very nice ways. In particular, using the min and max methods to save extraneous if/else logic and even normalising property values like scrollTop.

Published June 28, 2007
Categorized as Quick Links
Short URL: http://snook.ca/s/829

Conversation

0 Comments · RSS feed
Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.