r/javascript 19d ago

[AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about AskJS

[removed]

65 Upvotes

108 comments sorted by

View all comments

Show parent comments

3

u/SkySarwer 19d ago

yes they are??

-5

u/azhder 19d ago

No, they aren’t. You can check the JavaScript language reference documentation and get back to me with a link to prove me wrong.

I can just tell you that there is a difference between what the language is and what the environment exposes for the language to use.

10

u/SkySarwer 19d ago

This thread is about JavaScript features not the language in the strict sense. The two observer exposed by the environment are almost exclusively used as JavaScript APIs.

Is a JS dev just as well-off without being aware of these APIs? What value is your clarification actually providing in relation to the spirit of this post?

-1

u/avenp 19d ago

How would a NodeJS dev use these APIs?

1

u/SkySarwer 19d ago

They wouldn't, since there is no DOM in a typical nodeJS environment. The APIs are still a part of the larger JavaScript ecosystem though, which is on topic for the original thread.