Getting Started with JavaScript

Source: Internet
Author: User

JavaScript is a scripting language, a dynamic type, a weak type, and a prototype-based language.

Features:

Loose, weak type

JavaScript variables do not have to have a definite type, which is very different from the language you learned earlier.

Object Properties

Its object is to put Shu

Based on prototypes

Its object-oriented inheritance mechanism is prototype-based. A prototype prototype is an object that other objects can use to implement property inheritance. The benefit of using it is to have all object instances share the properties and methods that it contains. In JS, only inheritance is supported and interface implementations are not supported.


composition

A completed JavaScript consists of three parts:ecmascript,dom and BOM.

1)ECMAScript

An open, internationally accepted scripting language specification.

It is not a scripting language in itself. JavaScript is an implementation of the ECMASCRIPT specification.

2)DOM--Document Object model

Document Object model,d (Web document), O (object), M (model, tree structure)

is for API interface, depicts a hierarchical node tree.

3)bom--Browser object Model

It provides a number of objects for accessing the functionality of the browser.


The relation and difference between BOM and Dom

The BOM lacks the specification, itself does not have the standard or the organization to standardize it, but the DOM has become the world standard, has three grades DOM1, DOM2, DOM3.

The most fundamental object of the BOM is window, the most fundamental object of the DOM is document. The relationship is actually a BOM containing the DOM.



Summary: From CSS to HTML, to XML, js,b/s this part of the content or a piece of it again, just in the implementation of a simple small example. But if two kinds of interactions are involved, such as js+html or js+jquery, it is more difficult. But before the beef brisket, although looking very complex, but still have a sense of familiarity. Come on, let's go!


Getting Started with JavaScript

Related Article

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.