What will this Liquid code output? 🔄 ```liquid {% for tag in product.tags %} {{ tag }}{% unless forloop.last %}, {% endunless %} {% endfor %} ```

### Explanation This code creates a comma-separated list of tags without a trailing comma, including spaces. Key points: - `forloop.last` is true only for the last iteration - `unless forloop.last` means "skip this for the last item" - Common pattern for creating comma-separated lists Reference: [Shopify Liquid forloop object](https://shopify.dev/docs/api/liquid/objects/forloop)

Answer Options:

  • tag1, tag2, tag3,
  • tag1,tag2,tag3
  • , tag1, tag2, tag3
  • tag1, tag2, tag3
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]