Got error in console:
vendor-main-84ab4d5263.js:58Uncaught TypeError: Cannot read property 'split' of undefined
And testing doesn’t want to complete self.
I don’t have split
in code.
Here is code:
function addTogether(a, b) {
console.log("Enter in addTogehter(a,b ) with " + a + ", " + b);
if ( isNaN(a) || isNaN(b) )
return undefined;
console.log("Pass inNan in addTogehter(a,b) with " + a + ", " + b);
return a+b;
}
function addTogether(a){
console.log("Enter in addTogehter(a ) with " + a);
if ( isNaN(a) )
return undefined;
console.log("Pass inNan in addTogehter(a) with " + a);
return function(b){
console.log("Enter in addTogehter(b ) with " + b);
if ( isNaN(a) || isNaN(b) )
return undefined;
console.log("Pass inNan in addTogehter(b) with " + b);
return a+b;
};
}
addTogether(2, 3);