0% found this document useful (0 votes)
10 views2 pages

Understanding JavaScript Basics and Features

JavaScript is a dynamically typed programming language primarily designed for web browsers, lacking low-level access to memory or CPU. Its functionality varies based on the environment, with Node.js enabling file operations and network requests, while in-browser JavaScript focuses on webpage manipulation. The Same Origin Policy restricts access between different tabs or windows from different domains, and developer tools provide functionalities for error checking and variable examination.

Uploaded by

fides91702
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Understanding JavaScript Basics and Features

JavaScript is a dynamically typed programming language primarily designed for web browsers, lacking low-level access to memory or CPU. Its functionality varies based on the environment, with Node.js enabling file operations and network requests, while in-browser JavaScript focuses on webpage manipulation. The Same Origin Policy restricts access between different tabs or windows from different domains, and developer tools provide functionalities for error checking and variable examination.

Uploaded by

fides91702
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

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.

You might also like