JavaScript Lesson Three

Source: Internet
Author: User

1. String (stfing)

2. Value (number)

3. Variables are defined by the var operator plus the variable name.

4 Boolean values are only true and False Two (Boolean).

5. Objects (object). Array arrays (object)

6. Review the data type (typeof).

7. Converted into numbers (parseint () he only recognized integers) (parsefloat () he only recognized numbers)

8. Determine the variable type (typeof (a) = = "Sting") (typeof== "number")

9.null empty variable undefined is not.

Ten. (a=i++ A is i) (A=++i A is i+1)

1. If is what happens if it does not set up do not.

2.

Switch (MUN) {
Case "a":
Alert ("You have selected a package");
Break
Case "B":
Alert ("You chose the B package");
Case "C":
Alert ("You chose the C package");
Case "D":
Alert ("You have selected D package");
Default
Alert ("Welcome next time");

}

JavaScript Lesson Three

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.