MCQ Single Best Answer Easy

QWhat 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;
    }

ID: #5402 AngularJS Testing MCQ 220 views
Question Info
#5402Q ID
EasyDifficulty
AngularJS Testing MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A invalid args
  • B runtime error
  • C logical error
  • D compile time error
Correct Answer: Option A

Explanation

invalid args

Share This Question

Challenge a friend or share with your study group.