Currently using JSLint to scan the code below:
'use strict';
var mathService = {
add: add,
subtract: subtract,
multiply: multiply,
divide: divide,
power: power,
squareRoot: squareRoot
};
function add(first, second) {
return first + second;
}
function subtract(first, second) {
return first - second;
}
function multiply(first, second) {
return first * second;
}
function divide(first, second) {
return first / second;
}
function power(first, second) {
return Math.pow(first, second);
}
function squareRoot(first) {
return Math.sqrt(first);
}
Encountering error messages when trying to lint this code, specifically for each property in the object being labeled as undefined. Was under the assumption that object properties did not need to be defined. Appreciate any assistance on resolving this issue!