MCQs > IT & Programming > Angular JS > 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‘);

Angular JS MCQs

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‘);

Answer

Correct Answer:

Statements A and B are false.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it