The most famous use of JS is, of course, web development. Most often JS is used when you need to add dynamism to a site or make a browser application, but if you want, you can write a backend on it.
- prototypical programming style (prototypes and cloning instead of classes and inheritance);
- weak dynamic typing;
- functions as objects of the first class (i.e. they can be created at runtime).
Dynamic web pages
Tooltips, moving pictures, falling snowflakes and other animations – you can go to JS for all this. JS code is embedded in a web page, and when a user opens it, the script is executed directly in the browser.
Web applications and games