4

I have recently came across the term intrinsic (data) types in the StackOverflow question related to Javascript, but it was not clearly conveyed what is meant by this term.

So the question is. What are the intrinsic (data) types in Javascript?

Eduard
  • 8,437
  • 10
  • 42
  • 64

1 Answers1

5

"Intrinsic" is the way some authors refer to what other authors call "built-in". So, those data types/objects/classes are always there regardless of what environment you're running in.

E.g.:

JavaScript provides intrinsic (or "built-in") objects. They are the Array, Boolean, Date, Error, Function, Global, JSON, Math, Number, Object, RegExp, and String objects.

https://learn.microsoft.com/en-us/scripting/javascript/intrinsic-objects-javascript

Community
  • 1
  • 1
deceze
  • 510,633
  • 85
  • 743
  • 889
  • However, those intrinsics are not data types. – Bergi Jan 30 '18 at 09:46
  • Perhaps the specific article OP read was referring to *built-in strings, numbers* etc. The word "intrinsic" should have the same meaning though. – deceze Jan 30 '18 at 09:48
  • Yes, perhaps. But until the OP provides a quote or link to the article, I'll vote to close. – Bergi Jan 30 '18 at 09:49
  • @deceze And by "environment" you mean "programming language"? – Eduard Jan 30 '18 at 09:57
  • @Eduard No, I mean *runtime environment*, e.g. browser vs. node.js vs. embedded in some system. As long as it's *Javascript*, these "intrinsic"/"built-in" objects/types/whatever should always be available. – deceze Jan 30 '18 at 09:58
  • @deceze Thank you! – Eduard Jan 30 '18 at 09:59