Home »
MCQs »
Jasmine.js MCQs
Suppose you want to Check to see whether any variables in the code are predefined, then which of the following matcher you will use?
18. Suppose you want to Check to see whether any variables in the code are predefined, then which of the following matcher you will use?
- TobePredefined ()
- toBeDefined
- ToPredefined()
Answer: B) toBeDefined
Explanation:
toBeDefined () Check to see whether any variables in the code are predefined.