Article Web Application

Find Sum Of Two numbers Using Javascript

-crop-342-184-245px-Add-Two-Numbers-in-Visual-Basic-Step-6-Version-2

<!doctype html>

<html>  

<head> 

<script>

function add ()

{

var a, b, c

a= number/ document.get element by id (” first”) • vlaues);

b= number/ document.get element by id (” second”)• value;

c = a + b;

document.get element by id (” answer”)• value= c;

}

</script>

</head>

<body>

Enter the first number :< input id= ” first”>

Enter the first number: < input id = ” second”>

<Button on click = ” add () “> Add </ button>

< input id = ” answer”>

</body>

</html>

 

 

 

    Bishu Kumar

    I am Bishu kumar and i like travelling and sports.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Back To Top