What's the output of this Liquid code? 🔄 ```liquid {% assign items = "a,b,c" | split: "," %} {% capture result %} {% for item in items %} {{ item }} {% endfor %} {% endcapture %} {{ result | strip }} ```

### Explanation Liquid whitespace handling in capture blocks: ```liquid # Newlines in capture become spaces {% capture result %} a b c {% endcapture %} {{ result }} # => " a b c " # strip filter removes leading/trailing whitespace {{ " a b c " | strip }} # => "a b c" ``` Key points: - Capture preserves whitespace - Newlines convert to spaces - Use strip or strip_newlines as needed Reference: [Liquid Capture](https://shopify.dev/api/liquid/tags/variable#capture)

Answer Options:

  • abc
  • a b c
  • a,b,c
  • ['a','b','c']
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]