Skip to content Skip to sidebar Skip to footer

Difference between addition and concatenation in javascript

     Concatenation mean adding two string or character, addition mean sum of two number, in the following example is explaining the difference of adding two numbers and adding one number and character.

     If you put a number in inside a double or single quote the javascript is consider it as a string (not number).



Example Program:- (Editor)


Editor is Loading...

Advertisement

Post a Comment for "Difference between addition and concatenation in javascript"