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

Which built-in method calls a function for each element in the array?

1013


What is the use of dom?

913


Where do I write javascript code?

993


What is the use of Push method in JavaScript?

969


Which javascript is best?

912


List some data types supported by javascript?

880


How to write a script for "select" lists using javascript

1036


Difference between Pure functions Vs. Impure functions in javascript?

952


Which is better python or javascript?

892


How to force a page to go to another page using javascript ?

861


How can javascript codes be hidden from old browsers that don't support javascript?

925


How can I prevent others from reading/stealing my scripts or images?

867


What is closure?

1037


Is a function an object?

924


What are math constants and functions using javascript?

957