License and Attribution
Portions of this page were adapted from the Arduino Reference Documentation , which is released under a Creative Commons Attribution-ShareAlike 3.0 License .
Enter search terms or a module, class or function name.
This chapter documents all the JavaScript language operators, expressions and keywords.
For an alphabetical listing see the sidebar on the left.
Basic keywords and general expressions in JavaScript. These expressions have the highest precedence (higher than operators ).
The this keyword refers to a special property of an execution context.
Basic null , boolean, number, and string literals.
Array initializer/literal syntax.
Object initializer/literal syntax.
The function keyword defines a function expression.
The class keyword defines a class expression.
The function* keyword defines a generator function expression.
The async function defines an async function expression.
The async function* keywords define an async generator function expression.
Regular expression literal syntax.
Template literal syntax.
Grouping operator.
Left values are the destination of an assignment.
Member operators provide access to a property or method of an object ( object.property and object["property"] ).
The optional chaining operator returns undefined instead of causing an error if a reference is nullish ( null or undefined ).
The new operator creates an instance of a constructor.
In constructors, new.target refers to the constructor that was invoked by new .
An object exposing context-specific metadata to a JavaScript module.
The super keyword calls the parent constructor or allows accessing properties of the parent object.
The import() syntax allows loading a module asynchronously and dynamically into a potentially non-module environment.
Postfix/prefix increment and postfix/prefix decrement operators.
Postfix increment operator.
Postfix decrement operator.
Prefix increment operator.
Prefix decrement operator.
A unary operation is an operation with only one operand.
The delete operator deletes a property from an object.
The void operator evaluates an expression and discards its return value.
The typeof operator determines the type of a given object.
The unary plus operator converts its operand to Number type.
The unary negation operator converts its operand to Number type and then negates it.
Bitwise NOT operator.
Logical NOT operator.
Pause and resume an async function and wait for the promise's fulfillment/rejection.
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value.
Exponentiation operator.
Multiplication operator.
Division operator.
Remainder operator.
Addition operator.
Subtraction operator.
A comparison operator compares its operands and returns a boolean value based on whether the comparison is true.
Less than operator.
Greater than operator.
Less than or equal operator.
Greater than or equal operator.
The instanceof operator determines whether an object is an instance of another object.
The in operator determines whether an object has a given property.
Note: => is not an operator, but the notation for Arrow functions .
The result of evaluating an equality operator is always of type boolean based on whether the comparison is true.
Equality operator.
Inequality operator.
Strict equality operator.
Strict inequality operator.
Operations to shift all bits of the operand.
Bitwise left shift operator.
Bitwise right shift operator.
Bitwise unsigned right shift operator.
Bitwise operators treat their operands as a set of 32 bits (zeros and ones) and return standard JavaScript numerical values.
Bitwise AND.
Bitwise OR.
Bitwise XOR.
Logical operators implement boolean (logical) values and have short-circuiting behavior.
Logical AND.
Logical OR.
Nullish Coalescing Operator.
The conditional operator returns one of two values based on the logical value of the condition.
An assignment operator assigns a value to its left operand based on the value of its right operand.
Assignment operator.
Multiplication assignment.
Division assignment.
Remainder assignment.
Addition assignment.
Subtraction assignment
Left shift assignment.
Right shift assignment.
Unsigned right shift assignment.
Bitwise AND assignment.
Bitwise XOR assignment.
Bitwise OR assignment.
Exponentiation assignment.
Logical AND assignment.
Logical OR assignment.
Nullish coalescing assignment.
Destructuring assignment allows you to assign the properties of an array or object to variables using syntax that looks similar to array or object literals.
Pause and resume a generator function.
Delegate to another generator function or iterable object.
Spread syntax allows an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. In an object literal, the spread syntax enumerates the properties of an object and adds the key-value pairs to the object being created.
The comma operator allows multiple expressions to be evaluated in a single statement and returns the result of the last expression.
Specification |
---|
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
In mathematics and computer programming , an operator is a character that represents a specific mathematical or logical action or process. For instance, "x" is an arithmetic operator that indicates multiplication, while "&&" is a logical operator representing the logical AND function in programming.
Depending on its type, an operator manipulates an arithmetic or logical value, or operand, in a specific way to generate a specific result. From handling simple arithmetic functions to facilitating the execution of complex algorithms, like security encryption , operators play an important role in the programming world.
Mathematical and logical operators should not be confused with a system operator , or sysop, which refers to a person operating a server or the hardware and software in a computing system or network.
In computer programs, Boolean operators are among the most familiar and commonly used sets of operators. These operators work only with true or false values and include the following:
These operators and variations, such as XOR, are used in logic gates .
Boolean operators can also be used in online search engines , like Google. For example, a user can enter a phrase like "Galileo AND satellite" -- some search engines require the operator be capitalized in order to generate results that provide combined information about both Galileo and satellite.
There are many types of operators used in computing systems and in different programming languages. Based on their function, they can be categorized in six primary ways.
Arithmetic operators are used for mathematical calculations. These operators take numerical values as operands and return a single unique numerical value, meaning there can only be one correct answer.
The standard arithmetic operators and their symbols are given below.
+ | Addition (a+b) | This operation adds both the operands on either side of the + operator. |
- | Subtraction (a-b) | This operation subtracts the right-hand operand from the left. |
* | Multiplication (a*b) | This operation multiplies both the operands. |
/ | Division (a/b) | This operation divides the left-hand operand by the operand on the right. |
% | Modulus (a%b) | This operation returns the remainder after dividing the left-hand operand by the right operand. |
Relational operators are widely used for comparison operators. They enter the picture when certain conditions must be satisfied to return either a true or false value based on the comparison. That's why these operators are also known as conditional operators.
The standard relational operators and their symbols are given below.
== | Equal (a==b) | This operator checks if the values of both operands are equal. If yes, the condition becomes TRUE. |
!= | Not equal (a!=b) | This operator checks if the values of both operands are equal. If not, the condition becomes TRUE. |
> | Greater than (a>b) | This operator checks if the left operand value is greater than the right. If yes, the condition becomes TRUE. |
< | Less than (a<b) | This operator checks if the left operand is less than the value of right. If yes, the condition becomes TRUE. |
>= | Greater than or equal (a>=b) | This operator checks if the left operand value is greater than or equal to the value of the right. If either condition is satisfied, the operator returns a TRUE value. |
<= | Less than or equal (a<=b) | This operator checks if the left operand value is less than or equal to the value of the right. If either condition is satisfied, the operator returns a TRUE value. |
Bitwise operators are used to manipulate bits and perform bit-level operations . These operators convert integers into binary before performing the required operation and then showing the decimal result.
The standard bitwise operators and their symbols are given below.
& | Bitwise AND (a&b) | This operator copies a bit to the result if it exists in both operands. So, the result is 1 only if both bits are 1. |
| | Bitwise OR (a|b) | This operator copies a bit to the result if it exists in either operand. So, the result is 1 if either bit is 1. |
^ | Bitwise XOR (a^b) | This operator copies a bit to the result if it exists in either operand. So, even if one of the operands is TRUE, the result is TRUE. However, if neither operand is TRUE, the result is FALSE. |
~ | Bitwise NOT (~a) | This unary operator flips the bits (1 to 0 and 0 to 1). |
Logical operators play a key role in programming because they enable a system or program to take specific decisions depending on the specific underlying conditions. These operators take Boolean values as input and return the same as output.
The standard logical operators and their symbols are given below.
&& | Logical AND (a&&b) | This operator returns TRUE only if both the operands are TRUE or if both the conditions are satisfied. It not, it returns FALSE. |
|| | (a||b) | This operator returns TRUE if either operand is TRUE. It also returns TRUE if both the operands are TRUE. If neither operand is true, it returns FALSE. |
! | Logical NOT (!a) | This unary operator returns TRUE if the operand is FALSE and vice versa. It is used to reverse the logical state of its (single) operand. |
Assignment operators are used to assign values to variables. The left operand is a variable, and the right is a value -- for example, x=3.
The data types of the variable and the value must match; otherwise, the program compiler raises an error, and the operation fails.
The standard assignment operators and their symbols are given below.
= | Assignment (a=b) | This operator assigns the value of the right operand to the left operand (variable). |
+= | Add and assign (a+=b) | This operator adds the right operand and the left operand and assigns the result to the left operand. Logically, the operator means a=a+b. |
-= | Subtract and assign (a-=b) | This operator subtracts the right operand from the left operand and assigns the result to the left operand. Logically, the operator means a=a-b. |
*= | Multiply and assign (a*=b) | This operator multiplies the right operand and the left operand and assigns the result to the left operand. Logically, the operator means a=a*b. |
/= | Divide and assign (a/=b) | This operator divides the left operand and the right operand and assigns the result to the left operand. Logically, the operator means a=a/b. |
%= | Modulus and assign (a%=b) | This operator performs the modulus operation on the two operands and assigns the result to the left operand. Logically, the operator means a=a%b. |
The increment/decrement operators are unary operators, meaning they require only one operand and perform an operation on that operand. They sometimes are called monadic operators .
The standard increment/decrement operators and their symbols are given below.
++ | Post-increment (a++) | This operator increments the value of the operand by 1 after using its value. |
-- | Post-decrement (a--) | This operator decrements the value of the operand by 1 after using its value. |
++ | Pre-increment (++a) | This operator increments the value of the operand by 1 before using its value. |
-- | Pre-decrement (--a) | This operator decrements the value of the operand by 1 before using its value. |
See also: proximity operator , search string , logical negation symbol , character and mathematical symbols .
NBASE-T Ethernet is an IEEE standard and Ethernet-signaling technology that enables existing twisted-pair copper cabling to ...
SD-WAN security refers to the practices, protocols and technologies protecting data and resources transmitted across ...
Net neutrality is the concept of an open, equal internet for everyone, regardless of content consumed or the device, application ...
A proof of concept (PoC) exploit is a nonharmful attack against a computer or network. PoC exploits are not meant to cause harm, ...
A virtual firewall is a firewall device or service that provides network traffic filtering and monitoring for virtual machines (...
Cloud penetration testing is a tactic an organization uses to assess its cloud security effectiveness by attempting to evade its ...
Regulation SCI (Regulation Systems Compliance and Integrity) is a set of rules adopted by the U.S. Securities and Exchange ...
Strategic management is the ongoing planning, monitoring, analysis and assessment of all necessities an organization needs to ...
IT budget is the amount of money spent on an organization's information technology systems and services. It includes compensation...
ADP Mobile Solutions is a self-service mobile app that enables employees to access work records such as pay, schedules, timecards...
Director of employee engagement is one of the job titles for a human resources (HR) manager who is responsible for an ...
Digital HR is the digital transformation of HR services and processes through the use of social, mobile, analytics and cloud (...
A virtual agent -- sometimes called an intelligent virtual agent (IVA) -- is a software program or cloud service that uses ...
A chatbot is a software or computer program that simulates human conversation or "chatter" through text or voice interactions.
Martech (marketing technology) refers to the integration of software tools, platforms, and applications designed to streamline ...
Current time by city
For example, New York
Current time by country
For example, Japan
Time difference
For example, London
For example, Dubai
Coordinates
For example, Hong Kong
For example, Delhi
For example, Sydney
City coordinates
Coordinates of elektrostal in degrees and decimal minutes, utm coordinates of elektrostal, geographic coordinate systems.
WGS 84 coordinate reference system is the latest revision of the World Geodetic System, which is used in mapping and navigation, including GPS satellite navigation system (the Global Positioning System).
Geographic coordinates (latitude and longitude) define a position on the Earth’s surface. Coordinates are angular units. The canonical form of latitude and longitude representation uses degrees (°), minutes (′), and seconds (″). GPS systems widely use coordinates in degrees and decimal minutes, or in decimal degrees.
Latitude varies from −90° to 90°. The latitude of the Equator is 0°; the latitude of the South Pole is −90°; the latitude of the North Pole is 90°. Positive latitude values correspond to the geographic locations north of the Equator (abbrev. N). Negative latitude values correspond to the geographic locations south of the Equator (abbrev. S).
Longitude is counted from the prime meridian ( IERS Reference Meridian for WGS 84) and varies from −180° to 180°. Positive longitude values correspond to the geographic locations east of the prime meridian (abbrev. E). Negative longitude values correspond to the geographic locations west of the prime meridian (abbrev. W).
UTM or Universal Transverse Mercator coordinate system divides the Earth’s surface into 60 longitudinal zones. The coordinates of a location within each zone are defined as a planar coordinate pair related to the intersection of the equator and the zone’s central meridian, and measured in meters.
Elevation above sea level is a measure of a geographic location’s height. We are using the global digital elevation model GTOPO30 .
Machine design & industrial automation.
All products maple maplesim.
IMAGES
VIDEO
COMMENTS
Special Semantics of the ,= Assignment Operator. In most cases, the operator assignment a ,= b is equivalent to a = a,b, forming an expression sequence from the values of a and b, and assigning it back to variable a.. In the special case where the value of the left hand side is a one dimensional Array, the Array is expanded and the right hand side appended to the Array in-place.
In Maple, we can label and manipulate anything using just a few basic commands.. > Lastly, here is an interesting feature of Maple's assignment operator. We can use the assignment operator to assign more than one variable at a time. > x, y := 1, 2; > x, y; We need to have as many values on the right hand side of the assignment operator as we have
Whenever an assignment is made to a local variable with such a type assertion, the type of the right-hand side is checked after evaluation, but before the assignment is done. ... The assign command is thread safe as of Maple 15, provided that the name or function being assigned to is not shared between threads. • For more information on ...
What Maple is saying here is that x can be anything, and then a is . Oh, but that's not what I meant, I wanted it to solve for x. But Maple doesn't read minds. I have to tell it what I want it to do. solve(a + 3*x = 5, x); If I put the x in curly braces, Maple doesn't just return the value of x, it returns an equation, also in curly braces.
Maple does not have any knowledge of this convention so in an expression Maple treats all unassigned names (i.e., all unknowns) as variables. In all the examples of expressions and Maple functions given above, we never gave any of them a name. But we can always use the assignment operator to give an expression or function a name, and
Assignment operator The := operator can be used to assign a Maple expression to a variable name. This expression could be anything from a constant to the output of a Maple command. This is particularly useful if the output will be used in subsequent Maple commands. For example, the command r:= 5; assigns the value 5 to the variable r. The command
The Essential Maple. Scott Esterholm and Mark Pond . Critical Functions. restart; -Command to reset all variables. Should be used at top of every program.?command - Calls up Maple help on a command.; - Executes command line and shows result.: - Executes command line and hides result.:= - Variable assignment operator. (NOT =) funct := var -> expr(var); - Creates a function with respect to a ...
assignment operator, assign a value to a variable, un-assign the value in maple, special operators in maple, Pai in maple exponential in maple, logarithm in ...
Throughout Tutorial, we present Maple commands in red color (as Maple input), while Maple output is in blue, which means that the output is in 2D output style. To switch your input into Maple input, type Ctrl-M or use options Maple Input/monocpaced in math mode or Maple input, depending on Maple's version.
Maple Syntax As much as possible, Maple conforms to standard linear expression notation and precedence rules. ... The syntactic expression operators in Maple are shown below in order of precedence (lowest to highest), where all the operators in a given group have the same precedence. ... assignment statement ( a ) a parenthesized expression (to ...
The comparison operators ==, !=, <, >, <=, and >= are used to compare two numbers. They are true when the comparison is true, and false otherwise. They are based on the symbols =, ≠, <, >, ≤, and ≥ from mathematics. Here are some examples, with their meaning in comments: The parentheses are optional; they are present only for clarity.
Assignment operators are used in programming to assign values to variables. We use an assignment operator to store and update data within a program. They enable programmers to store data in variables and manipulate that data. The most common assignment operator is the equals sign (=), which assigns the value on the right side of the operator to ...
The assignment operator tells the microcontroller to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign . ... Assignments on the Maple are identical to those on Arduino.
An assignment operator assigns a value to its left operand based on the value of its right operand. The simple assignment operator is equal (=), which assigns the value of its right operand to its left operand.That is, x = f() is an assignment expression that assigns the value of f() to x. There are also compound assignment operators that are shorthand for the operations listed in the ...
Basic keywords and general expressions in JavaScript. These expressions have the highest precedence (higher than operators ). The this keyword refers to a special property of an execution context. Basic null, boolean, number, and string literals. Array initializer/literal syntax. Object initializer/literal syntax.
In Maple, we can label and manipulate anything using just a few basic commands. > Lastly, here is an interesting feature of Maple's assignment operator. We can use the assignment operator to assign more than one variable at a time. > x, y := 1, 2; > x, y; We need to have as many values on the right hand side of the assignment operator as we have
5. Assignment operators. Assignment operators are used to assign values to variables. The left operand is a variable, and the right is a value -- for example, x=3. The data types of the variable and the value must match; otherwise, the program compiler raises an error, and the operation fails.
All variables begin their life in Maple as unassigned variables. To change an unassigned variable to an assigned one, we use the assignment operator, which is a colon followed by an equal sign (i.e. :=). A Maple command with an assignment operator in it is called an assignment statement. Here are some examples of assigned and unassigned variables.
Moscow Oblast ( Russian: Моско́вская о́бласть, Moskovskaya oblast) is a federal subject of Russia. It is located in western Russia, and it completely surrounds Moscow. The oblast has no capital, and oblast officials reside in Moscow or in other cities within the oblast. [1] As of 2015, the oblast has a population of 7,231,068 ...
In 1938, it was granted town status. [citation needed]Administrative and municipal status. Within the framework of administrative divisions, it is incorporated as Elektrostal City Under Oblast Jurisdiction—an administrative unit with the status equal to that of the districts. As a municipal division, Elektrostal City Under Oblast Jurisdiction is incorporated as Elektrostal Urban Okrug.
Elektrostal. Elektrostal ( Russian: Электроста́ль) is a city in Moscow Oblast, Russia. It is 58 kilometers (36 mi) east of Moscow. As of 2010, 155,196 people lived there.
The Maple element-wise operators are listed in Table 2.5. For more information about these operators, refer to the operators,elementwise help page. Table 2.5: Element-wise Operators ... Use only valid names on the left-hand side of an assignment statement. Incorrect Syntax in Parse. The parse command accepts a string as its argument. An ...
Geographic coordinates of Elektrostal, Moscow Oblast, Russia in WGS 84 coordinate system which is a standard in cartography, geodesy, and navigation, including Global Positioning System (GPS). Latitude of Elektrostal, longitude of Elektrostal, elevation above sea level of Elektrostal.
Operators Description Descriptions are available for Maple's programming-language operators (binary, unary, nullary, and element-wise operators), Maple's algebra of functional operators, and defining properties of neutral operators. For descriptions...
Functional Operators Description Examples Description A functional operator in Maple is a special form of a procedure. Functional operators are written using arrow notation. Here, vars is a sequence of variable names (or a single variable) and result...