In this section, the target

  1. Know what javascript is.
  2. Learn what javascript can do.

Content in this paper,

This article introduces what javascript is, why it is used, and what the ECMAScript standard is.

Read for 5 to 10 minutes.

What is javascript?

Javascript is the most popular scripting language in the world, because the interaction logic of all the web pages you browse on computers, phones, tablets, and countless HTML5-based mobile apps is driven by javascript.

Simply put, javascript is an interpreted programming language that runs in a browser.

Why learn javascript?

The most basic three courses of Web front-end major are: HTML, CSS and javascript.

If HTML builds the structure of web pages and CSS dresses them up, javascript makes them move.

In addition, with the rise of each end, javascript, as the programming language of the browser, can better develop applications compatible with each end, so it is more and more popular.

Javascript history

Back in 1995, Netscape was becoming the best-known first-generation Internet company at the start of the Web age with its Navigator browser.

Because Netscape wanted to add some dynamic effects to static HTML pages, they asked Brendan Eich to design the javascript language in two weeks. You read that right. This guy only took 10 days.

Why javascript?

The reason was that the Java language was very popular at the time, so Netscape wanted to capitalize on the popularity of Java, but javascript was basically irrelevant except that it looked like Java syntactically.

ECMAScript

Because Netscape developed javascript, and a year later Microsoft copied javascript and developed JScript, and in order to make javascript a global standard, Several companies collaborated with the European Computer Manufacturers Association (ECMA) to create a standard for the javascript language, known as the ECMAScript standard.

So simply put, ECMAScript is a language standard, and javascript is Netscape’s implementation of the ECMAScript standard.

So why not just make javascript the standard? Because javascript is a registered trademark of Netscape.

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

The javascript version

The javascript language was designed in 10 days, and although the language’s designers are very talented, no one can afford to be “time-constrained and task-heavy”, so javascript has a lot of design flaws, which we’ll talk about later.

The latest version of the ECMAScript 6 standard (ES6 for short) was released in June 2015, so when it comes to javascript versions, Which version of the ECMAScript standard it implements.

Now with the development of the mobile Internet, many of the new features of ES6 are supported by browsers.

Javascript referred to as”

Javascript because the letters and pronunciation is too long, it is not easy to spell and pronounce, we are generally referred to as js, is Java and script at the beginning of the letter Mosaic. We’re going to call it JS.

exercises

  1. What are ES5 and ES6 respectively? What’s the difference?
  2. What’s the difference between javascript and Java?
  3. What are the application scenarios of javascript?
  4. What language is wechat small program developed?
  5. Can the application of Hongmeng Ecology be developed with JS?