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.