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

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

    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.