Write a javascript program to make a simple calculator

Answer Posted / vinoth180

var a=20;
var b=11;
document.writeln("ADDITION:",a+b,"<br>");
document.writeln("SUB:",a-b,"<br>");
document.writeln("MUL:",a*b,"<br>");
document.writeln("MUL:",a%b,"<br>");

Is This Answer Correct ?    47 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I enable cookies and javascript?

476


How can a page be forced to load another page in javascript?

638


What is the function of delete operator?

545


List few advantages of using javascript?

478


Methods get and post in html forms - what's the difference?

487






What is NaN?

547


Explain javascript closures by example.

486


Is there any class in javascript?

484


How do I run javascript in chrome?

475


How is it possible to get the total number of arguments that are passed to a function?

526


What is the difference between an array and an object?

457


Which is the best website to learn javascript?

483


Please write the Code of simple javascript calculator withot eval() function

1473


What are the main functions performed by javascript statements?

496


Explain escape() in javascript?

470