0 votes
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

Related questions

0 votes
asked May 17, 2019 in Python by Derya
0 votes
asked Jun 24, 2020 in Python by Robindeniel
...