Tag: Simple Step By Step Javascript Calculator in India

Simple Step By Step Javascript CalculatorSimple Step By Step Javascript Calculator

HTML Code <!DOCTYPE html> <html> <head lang=”en”> <meta charset=”UTF-8″> <title></title> <script src=”js/calcmodel.js”></script> <script src=”js/calccontroller.js”></script> </head> <body> <input type=”text” id=”firstNo” placeholder=”Type First Number”/> <input type=”text” id=”secondNo” placeholder=”Type Second Number”/> <button id=”addBt” data-operation=”+”>Add</button> <button id=”subtractBt” data-operation=”-“>Subtract</button> <button id=”mulBt” data-operation=”*”>Multiply</button> <button id=”divBt” data-operation=”/”>Divide</button> <h1>Result is <span id=”result”></span></h1> </body> </html> In Js Folder calcmodel.js var calcObject = { add:function […]