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!
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 trial
Neymat KakariOS Development Techdegree Student 786 Points
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
Jennifer NordellTreehouse Teacher
Hi 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.