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