Use of JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Use of JavaScript

23rd Feb 2018, 4:56 PM
Anas Yakubu
Anas Yakubu - avatar
2 Answers
+ 7
JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is writteninto an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it's up to the browser to do something with it. JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language. Inside a host environment (for example, a web browser),JavaScript can be connected to the objects of its environment to provide programmatic control over them.
23rd Feb 2018, 5:49 PM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 6
JavaScript add interactivity to websites. For example, Amazon uses JavaScript to add an item to your basket when you click 'add to basket'.
23rd Feb 2018, 4:58 PM
Robyn A
Robyn A - avatar