Thứ Ba, 2 tháng 2, 2016

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

0 nhận xét:

Đăng nhận xét