Which of the following sentences is correct about the following code snippet?
A) The last line of the code will evaluate to false.
B) Scopes do not follow inheritance, i.e. "c" will not inherit the scope of “p".
var p = $rootScope:
var c = p.$new();
p.salutation = "Sir";
expect(c.salutation).toEqual('Sir‘);
Correct Answer: Statements A and B are false.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Angular JS MCQ Questions