#javascript-code-07-typeof.js / js
// Check to see if our number is actually a string if ( typeof num == "string" ) // If it is, then parse a number out of it num = parseInt( num ); // Check to see if our array is actually a string if ( typeof arr == "string" ) // If that's the case, make an array, splitting on commas arr = arr.split(",");
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.