Removed an assignment in an if statement in one of the examples.

if (n = 10) --> if (n == 10).