Home »
MCQs »
Jasmine.js MCQs
Among toBe () and toEqual () which of the following compares objects recursively and checks property equality, and it is type sensitive
16. Among toBe () and toEqual () which of the following compares objects recursively and checks property equality, and it is type sensitive.
- toBe ()
- toEqual ()
Answer: B) toEqual ()
Explanation:
toEqual () compares objects recursively and checks property equality, and it is type sensitive.