Basic javascript syntax learning note _ javascript skills

Source: Internet
Author: User
This article mainly shares the notes on the basic javascript syntax to help you consolidate the basic javascript knowledge. For more information, see I. Definition
Javascript is a scripting language (interpreted Programming Language) used to enhance the dynamic page effect and realize real-time and dynamic interaction between pages and users ). Javascript consists of three parts: ECMA, DOM, and BOM.

[1] ECMAScript is defined by ECMA-262 and provides core language functions (ECMA is the European Association of computer manufacturers)

[2] DOM Document Object Model, which provides interfaces for accessing and operating webpage content

[3] BOM browser object model, which provides interfaces for interacting with browsers

II. Introduction
There are two ways to introduce javascript: embedding js code in the page and introducing external files

[1] Page embedding

《script》  alert("My First JavaScript");《script》

[2] introducing external js files

[Note] the script element with the src attribute should not include additional js Code between its script tag. If the embedded code is included, only the external scripts are downloaded and executed, while the embedded code is ignored.

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.