Basic knowledge of JavaScript

Source: Internet
Author: User
Tags float double
After reading the video tutorial "21 days learning JavaScript", I feel that I am familiar with the syntax, similar to C ++, similar to C #, and similar to Java! Sorry, these languages have similar syntaxes, such as data types and object methods (or functions). Since I am a cainiao, I cannot tell you exactly what it is ). In JavaScript, data types are classified into integer and floating-point types. Here, the floating-point type does not have the same single-precision or double-precision expression. The declaration of all variables only needs to use var (which is easy, do not record int long float double ......) What type of value you pay for it, and what type it is. Also, do not distinguish between characters and strings. In the past, sometimes, when using C #, it seems that "… Cannot be used as a string ". It's easy to remember, haha ............
The String type is similar to the string type in other languages. You can perform operations on the String, such as string truncation substring. The following is an example of a JavaScript string operation:

The Code is as follows:


Example 2-10

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.