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 trialNeymat Kakar
iOS Development Techdegree Student 786 Pointsunary operator
In the editor, initialScore represents a user's score in a game. A user managed to beat the current level so first, let's add 1 point to their initial score using the unary plus operator.
var initialScore = 8
// Enter your code below
var initialScore = 8
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! I received your request for assistance. I wish I knew what you had already tried that's failing so that I could better explain what you've missed. I can, however, point you to 1:27 in this video where Pasan explains how the unary operator is used to increment a value.
Good luck!