Syntax · Question 11 of 12

Given: lib.a = TEXT, lib.a.value = A, lib.b < lib.a, lib.c =< lib.a, then lib.a.value = X. What do lib.b and lib.c output in setup when included as content objects?

1 answer is correct. Hard

Show answer

Answer

  • C lib.b outputs A, lib.c outputs X

Explanation

The copy with < takes over the state at this line; later changes to lib.a do not reach lib.b. The reference =< is only resolved during rendering and therefore shows the changed value X.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications