JavaScript Advanced Programming 01-Basic concepts

Source: Internet
Author: User

One, JavaScript composition

1. A finished javascript is composed of three parts: ECMAScript, DOM, and BOM.

ECMAScript: Provides core language functions-grammar, type, statement, keyword, reserved word, operator, object;

DOM: Document Object Model-provides methods and interfaces for accessing and manipulating Web page content;

BOM: Browser Object Model--provides methods and interfaces for interacting with the browser

Second, reference JS in the page

1. There are two ways to refer to JS in a Web page--Embedding and external

<! DOCTYPE html>function  helloWorld () {        alert (' I am rookie ~ ~ ')    }    HelloWorld (); </script>

2.<noscript> elements

As the name implies, no script means! When did it happen? The browser does not support scripts or browser support scripts, but the script is disabled!

<! DOCTYPE html>

JavaScript Advanced Programming 01-Basic concepts

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.