Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Arcangelo Passaro
    Arcangelo Passaro
    35 Points

    I followed the instructions and the code looks correct but I get this error message ¨use of unresolved identifier¨

    Posted October 30, 2016 6:31pm by Arcangelo Passaro
    Arcangelo Passaro
    35 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    2 Answers

  • afele johnson
    afele johnson
    33 Points

    make langauge a variable how

    Posted October 25, 2016 12:16am by afele johnson
    afele johnson
    33 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Dave Santaniello
    Dave Santaniello
    59 Points

    Right code, wrong answer

    Posted October 22, 2016 9:34pm by Dave Santaniello
    Dave Santaniello
    59 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Tahani Al-Shumrani
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tahani Al-Shumrani
    iOS Development Techdegree Student 2,022 Points

    every time i want to preview my work to see where is the error and to check it dose not show anything in the screen

    Posted October 19, 2016 4:03pm by Tahani Al-Shumrani
    .a{fill-rule:evenodd;}techdegree
    Tahani Al-Shumrani
    iOS Development Techdegree Student 2,022 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    0 Answers

  • Ravi Soni
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ravi Soni
    iOS Development Techdegree Student 1,123 Points

    var is an datatype ??

    Posted October 5, 2016 5:59pm by Ravi Soni
    .a{fill-rule:evenodd;}techdegree
    Ravi Soni
    iOS Development Techdegree Student 1,123 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • seth gilbert
    seth gilbert
    526 Points

    what do i do

    Posted September 28, 2016 1:40pm by seth gilbert
    seth gilbert
    526 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Carmen Ibarcena
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Carmen Ibarcena
    iOS Development Techdegree Student 8,296 Points

    I do not understand this challenge! Thank you

    Posted July 26, 2016 11:02pm by Carmen Ibarcena
    .a{fill-rule:evenodd;}techdegree
    Carmen Ibarcena
    iOS Development Techdegree Student 8,296 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    4 Answers

  • Pema Khando Shachentsang
    PLUS
    Pema Khando Shachentsang
    Courses Plus Student 1,210 Points

    hello i have a problem. i write code.it doesnt accept my code. Please help me

    Posted June 13, 2016 3:56pm by Pema Khando Shachentsang
    Pema Khando Shachentsang
    Courses Plus Student 1,210 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • isaiah little
    PLUS
    isaiah little
    Courses Plus Student 97 Points

    I dont even know like dude

    Posted May 5, 2016 1:47am by isaiah little
    isaiah little
    Courses Plus Student 97 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Logan Standard
    Logan Standard
    1,015 Points

    1st Challenge Question - Swift 2.0 Basics

    Posted April 27, 2016 10:04pm by Logan Standard
    Logan Standard
    1,015 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    3 Answers

  • elias saghbini
    PLUS
    elias saghbini
    Courses Plus Student 33 Points

    what is the code to write?

    Posted April 12, 2016 2:52pm by elias saghbini
    elias saghbini
    Courses Plus Student 33 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Dangelo Robinson
    Dangelo Robinson
    97 Points

    I don't get it, please help

    Posted April 7, 2016 1:34pm by Dangelo Robinson
    Dangelo Robinson
    97 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Johnny Torres
    Johnny Torres
    1,338 Points

    Am I close? var str = "language" str = "swift"

    Posted March 7, 2016 8:32pm by Johnny Torres
    Johnny Torres
    1,338 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    3 Answers

  • Brandon Torrence
    Brandon Torrence
    33 Points

    I keep getting the message telling me that my code can't be complied. I do not know what it wants me to do.

    Posted February 26, 2016 12:07am by Brandon Torrence
    Brandon Torrence
    33 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Francesco D'Ercoli
    Francesco D'Ercoli
    228 Points

    could u please try to explain me what have i done wrong in this code?

    Posted February 25, 2016 2:55pm by Francesco D'Ercoli
    Francesco D'Ercoli
    228 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • joaquin encinas
    joaquin encinas
    262 Points

    Compiler not working

    Posted February 23, 2016 1:57am by joaquin encinas
    joaquin encinas
    262 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Francisco Lucas
    Francisco Lucas
    304 Points

    I'm confused by this question, I put the code but nothing comes up.

    Posted February 11, 2016 9:25pm by Francisco Lucas
    Francisco Lucas
    304 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Teko Nhlapo
    PLUS
    Teko Nhlapo
    Courses Plus Student 305 Points

    I cannot understand what the challenge is about?

    Posted February 1, 2016 10:06am by Teko Nhlapo
    Teko Nhlapo
    Courses Plus Student 305 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    2 Answers

  • dajahn carter
    PLUS
    dajahn carter
    Courses Plus Student 97 Points

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

    Posted January 18, 2016 5:27am by dajahn carter
    dajahn carter
    Courses Plus Student 97 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    2 Answers

  • quinn Isenstadt
    quinn Isenstadt
    97 Points

    var = str "language" I wrote this and it said it was incorrect. I pasted it form Xcode and it said it was correct.

    Posted January 13, 2016 12:11am by quinn Isenstadt
    quinn Isenstadt
    97 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • bright adusei
    PLUS
    bright adusei
    Courses Plus Student 180 Points

    I'm having difficulty understanding variable and constants

    Posted January 12, 2016 11:18pm by bright adusei
    bright adusei
    Courses Plus Student 180 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • Matt Conway
    Matt Conway
    1,572 Points

    Variable & String in Swift 2.0 Basics

    Posted January 6, 2016 6:53pm by Matt Conway
    Matt Conway
    1,572 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

  • 1+1=5 Xuyi
    PLUS
    1+1=5 Xuyi
    Courses Plus Student 222 Points

    where I can find the answers of task 2 of 2

    Posted January 3, 2016 6:23am by 1+1=5 Xuyi
    1+1=5 Xuyi
    Courses Plus Student 222 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    2 Answers

  • Tejas Agrawal
    Tejas Agrawal
    441 Points

    how to assign a new string in a old used varible

    Posted December 5, 2015 7:22pm by Tejas Agrawal
    Tejas Agrawal
    441 Points
    • iOS
    • Swift 2.0 Basics
    • An Introduction to Swift Programming
    • Working With Variables

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord