
williambengtsson2
1,103 PointsCan't solve second task...
I don't understand the second task.
First task solved:
var initialScore = 8
initialScore += 1
But the second... I've tried so many things, I don't understand the question, I'm getting something to 10 somehow?
let isWinner = true
let isWinner = !isWinner
8 Answers

andren
28,478 PointsA big hint for this task is that you can directly assign the result of a comparison to a variable. Like this:
let example = 3 == 2 // equals operator
// example ends up storing the Boolean "false" since 3 is not equal to 2.
let example2 = 3 != 2 // not equals operator
// example2 ends up storing the Boolean "true" since 3 is not equal to 2.
With that knowledge you should be able to figure out the answer to the challenge.

Ching Ching Huang
2,594 Pointslet isWinner = intitalScore != 10

Giovanni Rinaldi
1,104 PointsThanks all guys for your thoughts!

Anna Brown
6,353 PointsI still can't get it. I guess I need to watch the video again.

Lloyd David
1,424 PointsAnswer
let isWinner = 10 == 10

malcolm henry
1,089 PointsI found success with :
let isWinner = 9 != 10

Nasra Iid
Front End Web Development Techdegree Student 9,876 Pointslet isWinner = 5 != 10 I guess it will take any number other than 10

matthew kvamme
301 Pointslet isWinner = initialSore != 10
williambengtsson2
1,103 Pointswilliambengtsson2
1,103 PointsThank you, that solved it. Didn't know about that, very nice of you and to answer so quick as well. Cheers!