1. Home
  2. >
  3. Summary on javascript

Summary on javascript
rahoolbenji rahoolbenji

What can javascript do:

  • Add HTML, styles, content to a page.
  • Run on mouse clicks, user actions.
  • Prompt the users. Send AJAX requests using http over the internet
  • Access stuff like localStorage, indexedDb etc from the browser.
# javascriptintro
What javascript cannot do:

- Cannot read files on the hardisk

- Things like, camera, microphone, location can be accessed via javascript but only by taking permission from the user

- Windows from two different domains cannot know about each other. This is called the "Same Origin Policy"

- Cross origin requests from one domain to another are not allowed unless the other domain allows it explicitly or a separate routing is setup.


# javascriptintro