IT. Expert System.

Java Script

Operators


Operators

Variables are used for storing values or expressions.

Assignment Operators

JavaScript supports the following assignment operators:

Operator Description
= Assignment
+= Add and assign
-= Subtract and assign
*= Multiply and assign
/= Divide and assign
%= Modulus and assign

Arithmetic Operators

JavaScript supports the following arithmetic operators:

Operator Description
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus (division remainder)
++ Increment
-- Decrement

In JavaScript, the '+' operator is overloaded; it is used for string concatenation, arithmetic addition, and also to convert strings to numbers.

String Concatenation

To add two or more string variables together, use the + operator:

msg1 = "First Message.";
msg2 = "Second Message.";
output = msg1 + " " + msg2;

After these statements execute, output would contain:

First Message. Second Message.

Adding Strings and Numbers

When adding a number and a string in JavaScript, the result will always be a string:

sum = 50 + 50;
// sum contains 100 (a number)

sum = "50" + 50;
// sum contains "5050" (a string)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 480 / . Delta: 0.04170 с