Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics (retired) Types Strings

idk

idk

strings.swift

1 Answer

Jacob Knowles
Jacob Knowles
3,203 Points

Hello again friend! So first of all, we're working with the println function, or print line function. This function has already been defined for you, we are simply going to pass it a String of data. First, call the println function by typing out println(). Next, the challenge asks us to include three items, "Bread" "Milk" "Honey". This is our string! Swift will automatically know that your data is of string type if you wrap it in double parenthesis.

println("Bread \n Milk \n Honey")