how to add two numbers in javascript
let a = 4;
let b = 5;
document.write(a + b);
how to add two numbers in javascript
let a = 4;
let b = 5;
document.write(a + b);
how to add 2 numbers together in javascript
var x = +y + +z;
to add 2 numbers using function in javascript
// Prints the sum of 2 float numbers
function addition(number_1, number_2)
{
int sum = number_1 + number_2
document.write(sum)
}
var number_1 = parseFloat(prompt("First Number"));
var number_2 = parseFloat(prompt("Second Number"));
addition(number_1, number_2);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us