Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

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

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

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
  • 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.

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