Primitive datatypes include the following:
As the name suggests, the string is for a sequence of characters, for example, “demo”, “Hi”, etc.
It has two values i.e True or False.
Number represents numerical values such as 5, 20, 500, etc.
New datatype introduced in ECMAScript 6.