Separate what is in JS and what is an external API
⚡I still see how interviewers do not separate what is in JS and what is an external API.
Why it so important ?
I believe that this directly affects the formation of misconceptions among engineers and the creation of various myths around JavaScript.
Seeing this problem, I decided to prepare a series of articles for you, how does JS really work, and which will help interviewers to reconsider the wording of questions and possibly reduce the level of jargon and myths in the JS community.
So, let’s start with the fact that JS is an embedded programming language. Without input output.
One of the most popular pieces that executes JS and is embedded somewhere is V8.
Get Andrei Smolka’s stories in your inbox
Join Medium for free to get updates from this writer.
This can be roughly represented in this diagram below:
It consists in the following — when we have a HOST environment (what contains the engine, that is, embedded JS) —> RUNTIME
Everything that**RUNTIME** —> does has an input (where some data is fed) and an output (the data that is received at the output). And he doesn't know how to do anything else except for the very capabilities of JS.
Things like DOM, CCSOM, EVENTLOOP have nothing to do with the JS language. These are things that are provided by the host environment. Which are accessible from a language but are not part of that language.
Activity in the comments, as well as your reactions, are welcome! 🤝
#javascript #ecmascript #TC39 #programming









