0 votes
in AngularJS Packaging and Testing by
What will be the output of the following snippet , if we pass 3e,5?

Select the appropriate answer from below options:

vm.add = function(a,b){

if(typeof a !== 'number' || typeof b !== 'number'){

return 'invalid args';

}

return a+b;

}

a) logical error

b) compile time error

c) invalid args

d) runtime error

1 Answer

0 votes
by

Correct Answer of Above questions is : -c) invalid args

...