4.13 Other operators
The 4.13.1 conditional operator (?:) condition operator is the only ternary operator in JavaScript. Its operands can be of any type. The first operand is a Boolean value, and if it is true, the second operand is
Front.
Most of the operators in JavaScript are represented by punctuation marks, and a few are represented by keywords, and their syntax is concise and their numbers are indeed quite large. Operators always follow some fixed syntax, and only if you
One, bitwise operatorsIn general applications, we basically use an operator that is not in place. Although, it is based on the underlying, performance and speed will be very good, and that is because the lower level, the use of the difficulty is
Operator
JavaScript has assignments, comparisons, arithmetic, bits, logic, strings, and special operators. This chapter describes the operators and some information about operator precedence.Table 2.1 A concise list of all the JavaScript
xTable of Contents [1] Number of [2] precedence [3] binding [4] type [5] rules in front of the statementMost of the operators in JavaScript are represented by punctuation, a few are represented by keywords, their syntax is concise, and their numbers
JAVA value assignment operator and value assignment operator
Assign a value to the budget operator. Simply put, assign the variable value that defines the value to the variable you just defined.
For example, the score of student a is the same as
Speaking of operators, basically all kinds of programming languages will be involved, the use of similar methods. Here's a simple collation of JavaScript here today.
In general, operators are still relatively much more, can be divided into the
Attention:
First, as the current reading of JavaScript technology, so here take JavaScript as an example. You can try it in PHP yourself.
Second, JavaScript syntax is more complex, so take JavaScript as an example.
The recent re-reading of the
Number of operationsThere are 46 operators in JavaScript, and if they are categorized according to the number of their operands, most of them are two-dollar operators (binary operator) with two operands, which combine two expressions into complex
The JavaScript scripting language describes a set of operators for manipulating data values, including unary operators, Boolean operators, arithmetic operators, relational operators, ternary operators, bitwise operators, and assignment operators.An
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.