Quantcast
Channel: Webbjocke
Viewing all articles
Browse latest Browse all 10

How to better check data types in javascript

$
0
0

To check what data type something has in javascript is not always the easiest. The language itself provides an operator called typeof for that which works in a straightforward way. Typeof returns a string of what a values data type is, so for an object “object" is returned and for a string “string". However javascripts..

The post How to better check data types in javascript appeared first on Webbjocke.


Viewing all articles
Browse latest Browse all 10

Trending Articles