Horje
add variable numerically in javascript Code Example
add variable numerically in javascript
//use parseFloat(x); to change string to number
a=10;
b=20;
console.log(parseFloat(a)+parseFloat(b));//this will give a+b=30
//while
consle.log(a+b); //will give a+b=1020 [as String]




Javascript

Related
js random int Code Example js random int Code Example
jquery remove element Code Example jquery remove element Code Example
generate random int js Code Example generate random int js Code Example
npm ERR! command  /d /s /c node-pre-gyp install --fallback-to-build Code Example npm ERR! command /d /s /c node-pre-gyp install --fallback-to-build Code Example
?. in javascript Code Example ?. in javascript Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7