1. History of JavaScript
In the past, the Internet speed was relatively slow, and web page form verification and other operations needed to be performed on the server, which would take a long time, so Netscape invented a client-side scripting language called JavaScript.
The content below is also from the website above.
2. What is JavaScript?
JavaScript is designed to add interactive behavior to HTML pages.
JavaScript is a scripting language (a scripting language is a lightweight programming language).
JavaScript consists of several lines of executable computer code.
JavaScript is often embedded directly into HTML pages.
JavaScript is an interpreted language (that is, code execution is not precompiled).
Everyone can use JavaScript without purchasing a license.
3. What can JavaScript do?
JavaScript provides a programming tool for HTML designers
HTML creators are often not programmers, but JavaScript is a scripting language with an extremely simple syntax! Almost everyone has the ability to put short snippets of code into their HTML pages.
JavaScript can put dynamic text into an HTML page
A JavaScript statement similar to this can put a variable piece of text into an HTML page: document.write("