Tag Archives: typeof

626 views

JS get type of variable javascript

var n = 0.87; var sType = typeof n; //number   var str = "Hello Sapce!"; sType = typeof str; //string   typeof true === ‘boolean'; typeof undefined === ‘undefined';   typeof function() {} === ‘function'; // etc. …….   … Continue reading

Posted in Javascript css html | Tagged | Comments Off on JS get type of variable javascript