Skip to content
← Back to glossary

JavaScript

Learn in the textbookTypes of Representative Programming Languages

DefinitionJavaScript is a scripting language that runs mainly in web browsers to add motion and interactivity to web pages.

ExplanationA scripting language is a lightweight programming language that lets you write processing in a few short lines and run it right away. JavaScript was developed by Netscape in 1995 for its browser, and it can rewrite the content of an HTML page in response to what the user does. Besides being loaded and run by the engine built into the browser, it now also has runtime environments that run it on the server side.

AnalogyIt is like adding a pop-up mechanism to an already printed flyer, so its contents change when you open it.

Related past-exam questions(2 questions)