Addition of two number in javascript with source code
<script>
function fun1()
{
x=20
y=200
alert("Addition of two number is "+(parseInt(x)+y))
}
</script>
<body>
<input type="button" value="Addition" onclick="fun1()">
</body>
<script>
function fun1()
{
x=20
y=200
alert("Addition of two number is "+(parseInt(x)+y))
}
</script>
<body>
<input type="button" value="Addition" onclick="fun1()">
</body>
0 comments: