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 Build a Simple iPhone App with Swift Getting Started with Xcode A Swift Recap

where is the mistake?

i dont understand

getting_started.swift
//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

//Swift Recap

var someVariable = "aVariable"
let someConstant = 20

someVariable = "anotherString"

//var fruitsArray: [String] = ["apples"]
var fruitsArray = ["apples"]
fruitsArray.append("bananas")

fruitsArray

//optional

var optionalString: String? = "Hello!"
optionalString = nil

Is this to do with the challenge? Either way, what error are you seeing?

Steve.

Steve Hunter , yes the first challenge. I did everything what was in the video

In the challenge you've linked this to, the first question is Create a constant named bestSmartphone and assign it the string "iPhone". Is that the one you mean?