Strings are the one of the most used data types not only in JS but also in all programming language. Object are also very popular ( discuss object in other post).

1) Basic Information

In JS string can be enclosed either in ‘single quote’ or in “double quote” and also in `backticks` (ES2015…

1) typeof : typeof is the function use to get the type in js.

boolean only true and false are allowed for boolean
type of null is also object

functions are also object in js but typeof shows strange
behaviour in case of null and function
null also return "function"…

Rahul Beniwal

I am programmer and web developer who loves to teach

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store