Learn how comparisons allow us to ask the machine a question and get back an answer. Look at equality and greater/less than.
- [Narrator] In this video we're going to look at…simple comparisons, which are the beginning of the way…we can start to ask the computer a question about something…and get a meaningful answer back.…First we're going to look at equality,…that is knowing weather something…is the same as something else.…We can start out really easy,…I'll create variables for one and two…because most of the time at least one of the items…we're asking a question about will be a variable.…So we'll start out by asking if one is the same as one.…We're using three equals signs to do this.…
This operator is called the strict equality operator…and it tests whether the object on the left…is identical to the thing on the right.…And we can see that this is true.…There's a similar operator that asks…whether this is not equal to that.…So I'm going to type an up arrow to get back what I had before…and I'm going to change that first equals sign…to an exclamation mark or a bang.…This is called strict inequality,…so in this case we're just asking…
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await
Skill Level Beginner
1. Getting Started
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
7. More Advanced Pieces
Next steps3m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.