Skip to main content

🚀 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! 🤑

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

  • 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
  • Thomas Katalenas
    Thomas Katalenas
    11,033 Points

    a != nil ? a! : b a != nil ? a! : b a != nil ? a! : b a != nil ? a!

    Posted January 20, 2016 8:46pm by Thomas Katalenas
    Thomas Katalenas
    11,033 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    1 Answer

  • Dov Breuer
    Dov Breuer
    8,268 Points

    Someone please explain to me how this equals 20? let y = 25 - 5 * 2 + 5

    Posted November 27, 2015 3:44am by Dov Breuer
    Dov Breuer
    8,268 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    3 Answers

  • Jeffrey Kong
    Jeffrey Kong
    242 Points

    Why is 3 % 7 = 3? How did Swift calculate that?

    Posted October 19, 2015 2:19am by Jeffrey Kong
    Jeffrey Kong
    242 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    2 Answers

  • Fedor Andreev
    Fedor Andreev
    11,203 Points

    Why is the % called the remainder? But in C++ it's called the modulo?

    Posted July 27, 2015 6:32pm by Fedor Andreev
    Fedor Andreev
    11,203 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    2 Answers

  • Abdullah Alsowaygh
    Abdullah Alsowaygh
    8,719 Points

    Mistake in the video

    Posted July 22, 2015 2:33pm by Abdullah Alsowaygh
    Abdullah Alsowaygh
    8,719 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    1 Answer

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

    why the binary operations have to be organised ?

    Posted June 19, 2015 9:28am by NOUR A ALGHAMDI
    NOUR A ALGHAMDI
    Courses Plus Student 5,607 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    1 Answer

  • Laz Alberto
    Laz Alberto
    284 Points

    Operators not working?

    Posted June 13, 2015 7:24am by Laz Alberto
    Laz Alberto
    284 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    1 Answer

  • Scott Odle
    Scott Odle
    1,479 Points

    What app are you using to do that window snapping thing in the beginning of each video?

    Posted February 23, 2015 2:30am by Scott Odle
    Scott Odle
    1,479 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    0 Answers

  • Canbin Mei
    PLUS
    Canbin Mei
    Courses Plus Student 334 Points

    How is 3 % 7 = 3?

    Posted February 13, 2015 5:51am by Canbin Mei
    Canbin Mei
    Courses Plus Student 334 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    3 Answers

  • Unsubscribed User
    Unsubscribed User
    355 Points

    Hi Amit, on 3.34 in your video you state that x, / and + have the same priority. I thought + is lower in precedence?

    Posted December 22, 2014 3:48pm by Unsubscribed User
    Unsubscribed User
    355 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    0 Answers

  • Denise Carpenter
    Denise Carpenter
    1,480 Points

    I cant get it to play this morning

    Posted October 14, 2014 12:44pm by Denise Carpenter
    Denise Carpenter
    1,480 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    2 Answers

  • caiobianchi
    caiobianchi
    424 Points

    What's the ellipsis icon at the menubar on this video?

    Posted October 6, 2014 6:14am by caiobianchi
    caiobianchi
    424 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    2 Answers

  • Meg Cusack
    Meg Cusack
    11,448 Points

    Remainder operator

    Posted September 19, 2014 7:22pm by Meg Cusack
    Meg Cusack
    11,448 Points
    • iOS
    • Swift Basics (retired)
    • Operators
    • Operator Precedence

    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