Javascript - Primitive Data Type

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

Javascript has 6 primitive data type.

3 - List

Advertising

4 - Wrapper

Except for null and undefined, all primitive values have object equivalents that wrap around the primitive values. See Data Type - Boxing (Autoboxing|Autowrapping) and Primitive Wrapper

  • String for the string primitive.
  • Number for the number primitive.
  • Boolean for the Boolean primitive.
  • Symbol for the Symbol primitive.

The wrapper's valueOf() method returns the primitive value.

5 - Documentation / Reference

web/javascript/es/primitive.txt · Last modified: 2019/02/16 17:40 by gerardnico