Help
05-16-2003, 12:09 AM
what will return the data type of the variable, A1? (for example)
|
Click to See Complete Forum and Search --> : returns Help 05-16-2003, 12:09 AM what will return the data type of the variable, A1? (for example) Help 05-16-2003, 12:14 AM could it look like typeof(A1) Help 05-16-2003, 12:22 AM i was just wondering if it could be that way too. khalidali63 05-16-2003, 12:22 AM couple of items to add...:-) typeof will return data type of a variable if its not the instance of a predefined object.for example below are theexamples fo JS objectes. var arr = new Array() typeof arr will be object var date = new Date() typeof date will return object, not the Date or Array. On the other hand numbers ,strings and boolean values are returned as they are,e.g typeof Math.ceil(2.6) will return number typeof true will return boolean and typeof "js" will return string.. I hope this helps Help 05-16-2003, 02:09 AM it does thanks. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |