Initially, this language is used in the development of applications and browsers to give them interactivity and liveliness.
- change browser pages;
- add or remove tags;
- change page styles;
- information about user actions on the page;
- request access to a random part of the source code of the page;
- making changes to the source code;
- performing cookie action.