JavaScript learning notes operator (continued) _ basic knowledge-js tutorial

Source: Internet
Author: User
Tags bitwise operators
In the previous article, we explained the unary operators, bitwise operators, and boolean operators in javascript operators. Today we will continue to explain the remaining operators, including multiplication operators, addition operators, equality operators, condition operators, value assignment operators, and comma operators. Let's take a closer look at these operators to help improve your understanding of javascript. I. Multiplication Operators

1. Multiplication :*

Special rules for multiplication operators:

If the operands are all numeric values, they are calculated by regular multiplication. If the product exceeds the range indicated by the ECMAscript value, infinity or-infinity is returned.
If one of the operands is NaN, the returned result is NaN.
If infinity is multiplied by 0, NaN is returned.
If infinity is multiplied by a non-zero number, infinity or-infinity is returned.
Returns infinity if infinity is multiplied by infinity.
If one of the operands is not a value, the backend will call number () to convert it to a value, and then apply the preceding rule.

The Code is as follows:


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.