javascript
Scripts are provided and executed as plain text.
It does not provide low-level access to memory or the CPU, because it was initially
created for browsers which do not require it.
JavaScript’s capabilities greatly depend on the environment it’s running in. For
instance, [Link] supports functions that allow JavaScript to read/write arbitrary
files, perform network requests, etc.
In-browser JavaScript can do everything related to webpage manipulation,
interaction with the user, and the webserver.
Different tabs/windows generally do not know about each other. Sometimes they do,
for example when one window uses JavaScript to open the other one. But even in this
case, JavaScript from one page may not access the other page if they come from
different sites (from a different domain, protocol or port).
This is called the “Same Origin Policy”.
Developer tools allow us to see errors, run commands, examine variables, and much
more.
NOTE:- The benefit of a separate file is that the browser will download it and
store it in its cache.
CAUTION:_
<script src="[Link]">
alert(1); // the content is ignored, because src is set
</script>
What’s interesting – the dollar sign '$' and the underscore '_' can also be used in
names.
let my-name; // hyphens '-' aren't allowed in the name
JS is “dynamically typed” prog. language.