Change Language


Follow Navioo On Twitter

+

Adds two values together or concatenates two strings into a single string.

Syntax

numberA + numberB or stringA + stringB

Example

//Addition:
myVar = 2 + 2; //myVar = 4;
//Concatenation:
var firstName = "Joe"; var lastName = "Smith"; var fullName = firstName + " " + lastName; // fullName = "Joe Smith";
text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator