in Python by
What will be the output of the following snippet , if we pass 3e,5?

vm.add = function(a,b){

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

return 'invalid args';

}

return a+b;

}

(i)logical error

(ii)compile time error

(iii)invalid args

(iv)runtime error

1 Answer

0 votes
by
(iii)invalid args
...