Saved X
Google login
SignUp with Email
X

How to add two numbers in javascript

theindreshverma ( Edited  Sep 29, 11:47 pm )
Login

Javascript + operator

<script>
function addTwoNumbers() {
    var x = 5;
    var y = 5;
    document.write(x+y);
}
addTwoNumbers();
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes