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
Which built-in method calls a function for each element in the array?
What is the use of dom?
Where do I write javascript code?
What is the use of Push method in JavaScript?
Which javascript is best?
List some data types supported by javascript?
How to write a script for "select" lists using javascript
Difference between Pure functions Vs. Impure functions in javascript?
Which is better python or javascript?
How to force a page to go to another page using javascript ?
How can javascript codes be hidden from old browsers that don't support javascript?
How can I prevent others from reading/stealing my scripts or images?
What is closure?
Is a function an object?
What are math constants and functions using javascript?