Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
There are 7 primitive datatypes but this answer was described 5 only, which was wrong. So i changed it to 7 with its name.
Source Link

primitive, primitive value

A data that is not an object and does not have any methods. JavaScript has 57 primitive datatypesdata types: string, number, booleanbigint, nullboolean, undefined, symbol, and null.

primitive, primitive value

A data that is not an object and does not have any methods. JavaScript has 5 primitive datatypes: string, number, boolean, null, undefined.

primitive, primitive value

A data that is not an object and does not have any methods. JavaScript has 7 primitive data types: string, number, bigint, boolean, undefined, symbol, and null.

Commonmark migration
Source Link

primitive, primitive value

 

A data that is not an object and does not have any methods. JavaScript has 5 primitive datatypes: string, number, boolean, null, undefined.

primitive, primitive value

 

A data that is not an object and does not have any methods. JavaScript has 5 primitive datatypes: string, number, boolean, null, undefined.

primitive, primitive value

A data that is not an object and does not have any methods. JavaScript has 5 primitive datatypes: string, number, boolean, null, undefined.

Rollback to Revision 4
Source Link
Matt Fenwick
  • 49.3k
  • 24
  • 130
  • 198

Object.prototype.toString.call won't work, because of false negativespositives for all of the primitive wrappers and the custom builtin object typesprimitives:

Object.prototype.toString.call won't work, because of false negatives for all of the primitive wrappers and the custom builtin object types:

Object.prototype.toString.call won't work, because of false positives for all of the primitives:

added 44 characters in body
Source Link
Bergi
  • 670.7k
  • 162
  • 1k
  • 1.5k
Loading
extra examples
Source Link
Matt Fenwick
  • 49.3k
  • 24
  • 130
  • 198
Loading
added 505 characters in body
Source Link
Matt Fenwick
  • 49.3k
  • 24
  • 130
  • 198
Loading
added 1180 characters in body
Source Link
Matt Fenwick
  • 49.3k
  • 24
  • 130
  • 198
Loading
Source Link
Matt Fenwick
  • 49.3k
  • 24
  • 130
  • 198
Loading