I'm new in JavaScript and I'm trying to create a simple calculator with a separated function of operation
example for sum
and subtraction
function
fonction calculator() {
this.addition = function(param1, param2) {
.........
}
this.subtraction = function(param1, param2) {
.........
}
}
and like this for division without using an eval function .
i have made a lot of try without any result my code : https://codepen.io/anon/pen/oRderx