Php-javascript (1)

Source: Internet
Author: User

Js=>javascript: Browser-based scripting language

DAY1: variable, data type

Day2: statements, loops

DAY3: Functions

Day4-day6: Case

Js:javascript

HTML and CSS: Markup language

Javascript: Programming language

Variable:variable | [? VE?RI?BL] beauty [? VERI?BL]

Syntax: var variable name = value (data);

Variable: Used to hold something (data)

Variable name: Name= "False Ice Ice", [ Ice ice =>bb=>2b]

Variable name NOTE:

1) The variable name cannot be the same as the system internal keyword

2) variable names cannot start with a number

3) variable name inside, can only include numbers, letters, underline

4) Suggestion: Everyone use a more meaningful name

5) Suggestion: add Var, in order to let JS code standard

Variable name:

1) ABC_ACB

2) __ABC

3) ___ (not recommended)

4) 123ABC (Error)

5) Abc123

Alert: Pop-up window (warning, test)

1) Warning display

2) Testing

JS inside the grammar note:

1) in JS, all the symbols must be in the English state of the symbol

2) JS inside, case-sensitive

3) suggest that, after each line, add a semicolon

4) Suggestions, write JS code, each line to express the meaning of each line can be

5) in JS,

Application of Firebug:

1) Open Firebug

2) Console

Data type:

1) Number, numeric type, usually indicating number

2) string, string type, usually a letter or kanji, when writing a string, must be quoted, then in JS, both single and double quotation marks can be

3) Boolean type (Boolean,bool) True, False

4) empty type (null) means no value, empty

5) undefined type (undefined) indicates no definition

6) Composite data Class (Arr,object)

1, Number type

Usually just represents a number, can be a phase operation

2, String type

Usually just denotes letters or kanji, (both sides must be quoted)

3, Boolean type

Only two values, True (True), False (False)

4, empty type

Indicates no value NULL

5, undefined type

Indicates no definition

6, Composite type

Represents a collection of many data

Php-javascript (1)

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.