JavaScript Tutorial – typeof operator




typeof ‘str’ = “string”
typeof true = “boolean”
typeof false = “boolean”
typeof null = “object”
typeof undefined = “undefined”
typeof 5 = “number”
typeof NaN = “number”
typeof function = “function”
typeof object = “object”

Like my Facebook page:
https://www.facebook.com/pages/WebTunings/339234242822202

Recommended JavaScript Book:

Code snippets:
https://github.com/webtunings

Original source


Leave a Reply