A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/operators/addition below:

addition ยท WebPlatform Docs

addition Summary

Adds the value of one numeric expression to another, or concatenates two strings.

Syntax
result = expression1 + expression2;
result
Any variable.
expression1
Any expression.
expression2
Any expression.
Examples
console.log(1 + 1); 
console.log('hello' + ' world'); 
console.log(1 + '1'); 
console.log('1' + 1); 
Remarks

The types of the two expressions determine the behavior of the + operator.

If Then Both expressions are numeric or Boolean Add Both expressions are strings Concatenate One expression is numeric and the other is a string Concatenate See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4