JavaScript Tutorial
JavaScript, also known as ECMAScript, is an object- and event-driven scripting language that is relatively safe and widely used in client web development. It is also A scripting language widely used for client-side web development.
was first used in HTML to add dynamic functions to HTML web pages. It is a prototype-inherited object-oriented dynamic type case-sensitive client script language developed from Netscape's LiveScript. The main purpose is to solve the speed problems left by server-side languages, such as Perl, and respond to various user operations, providing customers with a smoother browsing effect. Because the server needed to verify the data at that time, because the network speed was very slow, only 28.8kbps, the verification step wasted too much time. So Netscape's browser Navigator added Javascript to provide basic functions of data verification. Now, however, JavaScript can also be used in web servers such as Node.js.
The basic characteristics of javascript
is an interpreted scripting language (the code is not pre-compiled).
Mainly used to add interactive behaviors to HTML pages.
It can be directly embedded into HTML pages, but writing it as a separate js file is beneficial to the separation of structure and behavior.
Characteristics of JavaScript
Different from server-side scripting languages, such as PHP and ASP, JavaScript is mainly used as a client-side scripting language to run on the user's browser. Requires server support. Therefore, in the early days, programmers preferred JavaScript to reduce the burden on the server, but at the same time it also brought about another problem: security.
As servers become more powerful, although today's programmers prefer scripts running on the server to ensure security, JavaScript is still popular for its cross-platform and easy-to-use advantages. At the same time, some special functions (such as AJAX) must rely on Javascript to be supported on the client side. With the development of engines such as V8 and frameworks such as Node.js, and their features such as event-driven and asynchronous IO, JavaScript is gradually used to write server-side programs.
Why learn JavaScript?
JavaScript One of the 3 languages that web developers must learn:
HTML defines the content of the webpage CSS describes the layout of the webpage JavaScript the behavior of the webpage
This tutorial is about JavaScript and an introduction to how JavaScript works with HTML and CSS.
Who is suitable to read this tutorial?
1. If you want to learn JavaScript, you can study this tutorial:
Understand how JavaScript works with HTML Works with CSS.
2. If you have used JavaScript before, you can also read this tutorial:
JavaScript is always being upgraded, so we need to always understand new technologies in JavaScript.
What you need to know before reading this tutorial:
To read this tutorial, you need to have the following basics:
HTML and CSS basics
If you want to learn these basic knowledge, you can find the corresponding tutorial php Chinese website on our homepage.