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
Can we create session in javascript?
What is an empty html tag?
What web sites do you feel use javascript most effectively (i.e., Best-in-class examples)? The worst?
How do you sort an array in javascript?
What is the importance of javascript?
What are the javascript data types?
Enumerate the differences between Java and JavaScript?
Is javascript necessary?
What is ‘this’ keyword in JavaScript?
Explain what is javascript? List some data types supported by javascript?
What is the concept of “functions as objects” and how does this affect variable scope?
Is there an alternative to javascript?
Name some of the built-in methods and the values returned by them.
Explain prototypal/differential inheritance?
How can you get the reference of a caller function inside a function?