Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).

1882


What Does JavaScript Void(0) Mean?

951


How to hide javascript code from old browsers that dont run it?

1038


Is javascript event driven?

937


How do you include a comment in javascript?

917


What is the instanceof operator in JavaScript?

978


What is Javascript namespacing? How and where is it used?

1029


What are the four types of javascript objects?

953


Consider the following code: 1 2 3 4 5 (function() { var a = b = 5; })(); console.log(b); what will be printed on the console?

850


What output will this program produce System.out.println(x+"+"+y+"="+(x+));

2046


How to test PAGE LOAD TIME, RELOAD THE PAGE, CAPTURE THE URL'S , TEST THE PIXALS please please above all these how to test as a tester

2289


What is memory leak in javascript?

914


Explain window.onload and ondocumentready?

922


Is javascript used for backend?

923


What is the difference between ‘var’ and ‘let’ keyword?

914