Day50 Initial knowledge of JavaScript

Source: Internet
Author: User

First, Background introduction

(i) Three styles of web development:

Structure: HTML: Describing the structure of a page from a semantic perspective

Style: CSS: From an aesthetic perspective, describe the style (beautify the page)

Behavioral (dynamic) JavaScript: Describe behavior from an interactive perspective (for improved user experience)

(b) Brandon? IKE (Brendan eich,1961-now), invented JavaScript in Netscape in 1995.

(iii) The relationship between JavaScript and ECMAScript

Ecmascript:ecmascript is a standard developed by ECMA International (formerly the European Association of Computer manufacturers, the English name is European Computer Manufacturers Association). ECMAScript is not a language, but a standard.

Part of javascript:

Including JS syntax standard: ECMAScript, DOM, BOM these three parts.

    • The grammatical standard of ecmascript:javascript. Includes variables, expressions, operators, functions, if statements, for statements, and so on.
    • DOM: An API that operates on elements on a Web page. For example, let the box move, color change, Carousel diagram and so on.
    • BOM: An API for manipulating browser-part functionality. For example, let the browser automatically scroll.

(iv) Features:

JavaScript is easy to learn, he is better for beginners, and it is a weakly typed variable language.

Defining a variable requires only: var a:

JavaScript does not care about other things (such as memory release, pointers, etc.) and is more concerned about its business.

Characteristics:

(1) Easy to use: can be written with any text editing tools, only the browser can execute the program.

(2) Interpreting execution (it is an explanatory language ): does not compile beforehand, executes line by row, does not need strict variable declaration.

(3) Object-based: Built in a large number of ready-made objects, writing a small number of programs can accomplish goals

Day50 Initial knowledge of JavaScript

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.