An Introduction To JavaScript - 1
An Introduction To JavaScript - 1
An Introduction to JavaScript
2
What is JavaScript
JavaScript is a cross-platform, object-oriented scripting language used to make
webpages interactive (e.g. having complex animations, clickable buttons,
popup menus, etc.). There are also more advanced server side versions of
JavaScript such as Node.js which allow you to add more functionality to a
website than simply downloading files (such as real-time collaboration between
multiple computers).
Cont.… 3
JavaScript’s abilities in the browser are limited for the sake of the user’s
safety. The aim is to prevent an evil webpage from accessing private
information or harming the user’s data.
Examples of such restrictions include:
JavaScript on a webpage may not read/write arbitrary files on the hard
disk, copy them or execute programs. It has no direct access to OS system
functions.
There are ways to interact with camera/microphone and other devices, but
they require a user’s explicit permission.
What makes JavaScript unique 9
End