If you wanted to create an unordered list from each value in a dictionary, which aspect of HubL would be most essential?
Choose an answer
Tap an option to check your answer.
Correct answer: A Loop.
Why this is the answer
A Loop is essential because it allows you to iterate over a collection of items, such as the key-value pairs in a dictionary. For each item, you can then output the desired HTML, like an <li tag, to construct an unordered list. An expression test (if statement) is used for conditional logic, not for iterating through collections. The do tag is used for assigning variables or performing other actions without outputting content directly, and wouldn't inherently create a list from dictionary values. It is indeed possible in HubL to create lists from dictionaries using loops.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed