Re-recognize JavaScript-2 again.

Source: Internet
Author: User

1.JavaScript does not have the int, double in Java and C, how to recognize these types? or not supported.

Q: What do you think?

Answer: VAR supports all data types (int, double, string), depending on the value you enter

Yes, it's supported.

Yo, you don't believe it, Judge with typeof (yes, JavaScript does not have int, float, double these types, only number)

2. I want to output an "I ' don ' t ' know", too?

Q: That's not good!

Answer: Yes.

Note the string escapes \ T and other special characters

3. Say the guys who write closures, why do they like to use _this, _temp to hold variables?

Get used to it!!!

4. Why do some people like conditional judgment start with a variable to define flag = ture, or flag = False

Easy to judge and value!!!

The shorthand is as follows (Novice note)

5.Array and New Array ()

Re-recognize JavaScript-2 again.

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.