1.

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

Answer»

What will be the output of the following SNIPPET , if we pass 3e,5?
Choose the correct option from below list
vm.add = FUNCTION(a,b){
if(typeof a !== 'number' || typeof b !== 'number'){
return 'invalid args';
}
return a+b;
}
(1)logical ERROR
(2)compile time error
(3)invalid args
(4)runtime error

Answer:-(3)invalid args



Discussion

No Comment Found