2 ms·
You might be confusing the JavaScript programming language and the browser runtime. The former is a general purpose programing language that favors prototypica
by runarberg 5y ago
You might be confusing the JavaScript programming language and the browser runtime.
The former is a general purpose programing language that favors prototypical object oriented programing paradigm but supports multiple other paradigms such as imperative and functional.
The latter uses the JavaScript language and adds on a bunch of specific APIs (such as the DOM) for specific purposes. This includes APIs for DOM manipulation, playing audio, validating inputs, parsing forms, handling key presses, etc.