iOS Swift Basics An Introduction to Swift Programming Working With Variables

its says its wrong but my preview has nothing in it

it said go check the preview so I did but there was nothing in it

4 Answers

Can you post your code Bryce?


I did, var str = "language"

Ok so that challenge says:

Declare a variable named language and assign the string "Swift".

So your variable has to be called 'language' and the string you assign to that variable has to be "Swift". Code below:

var language = "Swift"

I clicked preview it said nothing