Difference between revisions of "Operators"

From SDU
Jump to: navigation, search
m
(Arithmetic Operators)
Line 6: Line 6:
 
== Arithmetic Operators ==
 
== Arithmetic Operators ==
 
<source lang="javascript">
 
<source lang="javascript">
+
+
+ Addition
-
+
-   Subtraction
*
+
* Multiplication
/
+
/   Division
 +
% Modulo, for example a % b will result in the remainder of a divided by b
 
</source>
 
</source>
  

Revision as of 16:18, 3 March 2009

To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Arithmetic Operators

<source lang="javascript"> + Addition - Subtraction

  • Multiplication

/ Division % Modulo, for example a % b will result in the remainder of a divided by b </source>

Comparison Operators

<source lang="javascript"> == != </source>

Concatenation Operators

<source lang="javascript"> + </source>

Logical Operators

<source lang="javascript"> || && ! </source>