Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAamir Suhial Mir
Courses Plus Student 3,319 Pointsvar initialScore = 8 initialScore = ++initialScore let totalScore = initialScore
var initialScore = 8 initialScore = ++initialScore let totalScore = initialScore
is this what question asks about??
// Enter your code below
var initialScore = 8
initialScore = ++initialScore
let totalScore = initialScore
1 Answer
akin
Courses Plus Student 2,865 PointsHi Aamir ; I think this question is about increments and decrements For example , if you use ++ i and i = 8 then ++i will be 9. if you use --i and i = 8 then --1 will be 7.