JavaScript
Adapted from Wikipedia · Explorer experience
What is JavaScript?
JavaScript is a special kind of code that helps websites come alive. It works together with HTML and CSS to make websites interactive and fun. With JavaScript, websites can do cool things like games, moving pictures, and things that change without needing to load a new page.
JavaScript was created by Brendan Eich in 1995. Today, it is the most used programming language on GitHub. Almost every website uses JavaScript to add special features.
How Does JavaScript Work?
When you visit a website, your web browser uses a tool called a JavaScript engine to run the JavaScript code. These engines are also used in some computer servers and apps, with Node.js being popular for uses outside of browsers.
JavaScript is very flexible. It can handle text, dates, and organize information in many ways. Even though it doesn’t control things like networks or storage by itself, browsers and other tools give JavaScript the ability to do these tasks.
Fun Facts About JavaScript
- JavaScript was first called LiveScript, but it was renamed to JavaScript to sound like [Java (programming language)](/wiki/Java_(programming_language), which was very popular at the time.
- JavaScript can make websites more lively by loading new content without reloading the whole page, like sending and receiving messages on social media.
- It can create animations, play browser games, control videos and music, check information entered into forms, and store information on the user's device.
JavaScript is a key part of the web, making every visit more interesting and fun!
Related articles
This article is a child-friendly adaptation of the Wikipedia article on JavaScript, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.
Safekipedia