YouSub
Untitled

en English

Untitled English subtitles

0 downloads · 33 lines · added Dec 15, 2015

Report a problem
What's wrong?
Advertisement

English transcript

Okay, so for the first one, this part right here,
which is the declaration, looks fine to me.
The initialization is a little bit funky, why?
Well, we use quotes, and
if you remember from the lesson, quotes specifically have to do with strings.
And it really makes our computer see this text as a string.
Because of that,
the computer is going to complain about there being a mismatch between this
type, integer, and this value here which is a string.
Okay so this one definitely has a problem, so
i'm going to put a check in it.
Okay let's look at this next one.
The declaration here looks fine.
And ten without any quotes is an integer, so
this one actually looks perfectly okay.
One note that I would make is when we write variables we
tend to use camel case.
You can see that we're using camel case right here.
So technically this is okay, but
it doesn't really follow programming conventions.
To follow programming conventions, you would change that to a capital E.
But I'm not going to put a check next to it.
All right so let's look at the third one.
Now the biggest difference you'll notice between these two,
is that there's no space here.
Spaces, it turns out, are critically important.
Without the space, the computer can't know that you're actually trying to
declare a variable here.
In fact, what the computer will interpret this as is that you have
a variable called intunreadEmails which you haven't given any sort of data type.
Okay, so this one definitely has an error.
All right, and that's it.
Go ahead and try practicing these skills with the next few problems.

Need subtitles from another video?