JavaScript Tutorial

JavaScript Tutorial

JavaScript is the programming language of the web.

All modern HTML pages use JavaScript.

JavaScript is very easy to learn.


History of JavaScript

To understand JavaScript, we must first review the birth of JavaScript.

In 1995 of the last century, Netscape was becoming the most famous first-generation Internet company at the beginning of the Web era with its Navigator browser.

Because Netscape wanted to add some dynamic effects to static HTML pages, a guy called Brendan Eich designed the JavaScript language within two weeks. You read that right, this guy only took 10 days.

Why is it called JavaScript? The reason is that the Java language was very popular at the time, so Netscape hoped to use Java's fame to promote it. But in fact, except for the syntax of JavaScript, which is a bit like Java, other parts basically have nothing to do with it.


##ECMAScript

##Because Netscape developed JavaScript, a year later Microsoft imitated JavaScript and developed JScript. In order to make JavaScript a global standard, several companies joined forces with ECMA (European Computer Manufacturers Association) to customize the JavaScript language. standard, known as the ECMAScript standard.


So to put it simply, ECMAScript is a language standard, and JavaScript is Netscape's implementation of the ECMAScript standard.


Then why not just make JavaScript a standard? Because JavaScript is a registered trademark of Netscape.


But most of the time, we still use the word JavaScript. If you encounter the word ECMAScript, simply replace it with JavaScript.



#JavaScript version
The JavaScript language was designed in 10 days. Although the level of language designers is very NB, no one can stand the "time is tight, "Heavy task", therefore, JavaScript has many design flaws, which we will talk about later.


In addition, as the JavaScript standard - ECMAScript continues to develop, the latest version of the ECMAScript 6 standard (ES6 for short) has been officially released in June 2015. Therefore, speaking of The version of JavaScript actually means which version of the ECMAScript standard it implements.

Since the browser determines the JavaScript version when it is released, and many users are still using ancient browsers like IE6, this means that when you write JavaScript, you have to take care of old users. You cannot write using the latest ES6 standard right from the start, otherwise, old users’ browsers will not be able to run the new version of JavaScript code.


Why learn JavaScript?

3 languages that JavaScript web developers must learn One of them:

HTML defines the content of the webpage

CSS describes the layout of the webpage

JavaScriptThe 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 learn This tutorial:

Learn how JavaScript works with HTML and 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.


To read this tutorial, you need to have the following foundation:

HTML And CSS Basics

If you want to learn these basics, you can find the corresponding tutorials on our homepage.


Continuing Learning
||
第一个JavaScript程序
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!