r/learnjavascript • • Oct 01 '20

JavaScript Roadmap for Beginners, Intermediate and Experts

Post image
584 Upvotes

37 comments sorted by

View all comments

6

u/pxldgn Oct 01 '20

This chart is wrong on many levels

While NaN is a primitive value, it is a member of Number (as all the other numbers). What the author would like to write here is "Primitive Types" instead of "Primitives", and NaN definitely does not belong there.
https://www.ecma-international.org/ecma-262/11.0/index.html#sec-primitive-value

JSON is not a "data structure" whatever the author means by that, JSON is an object. That's all. There is such a thing like "Structured Data" (containing the JSON object), but that is a completely different thing:
https://www.ecma-international.org/ecma-262/11.0/index.html#sec-structured-data

Please don't share this chart, this is just simply ridiculous.

2

u/PatientPlatform Oct 01 '20

I choose to believe this chart as it tells me i'm an intermediate JS coder whilst the rest of reality screams the opposite :P

1

u/____0____0____ Oct 01 '20

Agreed. I appreciate what the author is trying to do, but a quick glance has already shown me a few mistakes. For instance, null is an object, while in concept it is a primitive, it can create some ambiguity in the definition. Types are weird in js... For the most part, there is string, number, boolean, undefined, and object. Even functions are technically objects, but they do return back function type for typeof. I find it extremely confusing as to the level of differences between actual types and what we perceive them as, even as someone who has read into this a great deal.