00:02
Okay, they ask us to examine the code to complete the following question, and they say, be careful.
00:08
Well, let's see.
00:10
If a is equal to b, they're testing for equality, semicolon, c is equal to 3.
00:20
Okay.
00:20
Well, i guess by be careful, they mean read.
00:23
Not, don't skim, but read.
00:25
Well, there's a semicolon here.
00:28
So what follows the if statement? and empty statement.
00:35
So conditionally, it'll do nothing.
00:37
Maybe it won't do nothing, but that really has no effect on our program.
00:42
And so another statement after this nothing, we're going to assign three, which means this if isn't defending whether this runs or not at all.
00:52
It's only testing this empty statement.
00:53
So never put a semicolon in front of your if.
00:57
It's always going to run the assignment operator.
01:00
Now let's see...