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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Austin Holman
    Austin Holman
    2,715 Points

    assigning a value to the amount property in the following task

    Posted June 28, 2016 1:10am by Austin Holman
    Austin Holman
    2,715 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

  • NOUR A ALGHAMDI
    PLUS
    NOUR A ALGHAMDI
    Courses Plus Student 5,607 Points

    type for return value , when creating a struct method !!

    Posted October 28, 2015 5:31pm by NOUR A ALGHAMDI
    NOUR A ALGHAMDI
    Courses Plus Student 5,607 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    3 Answers

  • YI FENG XIE
    YI FENG XIE
    2,274 Points

    when should i use parameters name

    Posted August 26, 2015 12:13am by YI FENG XIE
    YI FENG XIE
    2,274 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

  • Guilherme Kunzler
    Guilherme Kunzler
    1,433 Points

    Removing "self"

    Posted June 21, 2015 6:23am by Guilherme Kunzler
    Guilherme Kunzler
    1,433 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    2 Answers

  • Will Feldman
    Will Feldman
    3,121 Points

    When I take away "self." anywhere it doesn't do anything to the code. It doesn't create bugs or anything. Why?

    Posted June 13, 2015 8:41pm by Will Feldman
    Will Feldman
    3,121 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    2 Answers

  • JD Maldonado
    PLUS
    JD Maldonado
    Courses Plus Student 358 Points

    Hey Amit gets lazy when he asks the question. I don't understand the following challenge.

    Posted April 19, 2015 9:33pm by JD Maldonado
    JD Maldonado
    Courses Plus Student 358 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

  • matt tripodi
    matt tripodi
    2,673 Points

    Help with challenge

    Posted February 23, 2015 11:17pm by matt tripodi
    matt tripodi
    2,673 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    5 Answers

  • tytyty
    tytyty
    4,974 Points

    TeeHeeHee in the last challenge I passed Gas

    Posted February 5, 2015 7:00am by tytyty
    tytyty
    4,974 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    0 Answers

  • Charutha Bandara
    Charutha Bandara
    5,958 Points

    How come Closures wasn't covered in this course?

    Posted January 8, 2015 8:55am by Charutha Bandara
    Charutha Bandara
    5,958 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

  • K Jo
    K Jo
    7,283 Points

    When and why do we use self?

    Posted December 7, 2014 5:37pm by K Jo
    K Jo
    7,283 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

  • Todd Deluca
    Todd Deluca
    1,352 Points

    Following example is leading to errors and I need another set of eyes.

    Posted December 2, 2014 9:46pm by Todd Deluca
    Todd Deluca
    1,352 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    4 Answers

  • Renato Nobre
    Renato Nobre
    5,805 Points

    Shouldn't be calling person.fName?

    Posted November 25, 2014 8:27pm by Renato Nobre
    Renato Nobre
    5,805 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Struct Methods

    1 Answer

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.