In this video, we're going to look at simple comparisons, which are the …beginning of the way that we could start asking the computer a question about …something and getting a meaningful answer back. …So, the first thing we're going to look at is equality, and that is knowing …whether something is the same as something else. …So, we can start out by something really easy. …We're going to ask if 1 is the same as 1. And we're using 3 equal signs to do this. …This operator will test whether the object on the left is identical to the …thing on the right. And it returns true.…
Indeed, that's just what we expect. There is a similar operator that asks …whether this is not identical to that. And to do that you just substitute that …first equal sign for an exclamation mark. So in this case, we're asking is 1 not …identical to 1? And we would expect the answer would be …false, and indeed it is. We can also get true from that, if we put …something that is, in fact, different. So 1 is not identical to 2? …
- Enabling Firebug and web inspectors
- Using a text editor
- Declaring and assigning a variable
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Understanding variable scope
Skill Level Beginner
Q: In "How to enable Firebug and web inspectors," at the Chrome Canary part, the author mentions going to the View menu, and then Developer. My Canary has no menu bar. The author uses a Mac, whereas I have Windows. How do I get to the same place?
A: Click the menu button at the top right of Chrome, select More Tools, and then choose Developer Tools.
1. Getting Started
Our friend, the text editor3m 35s
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
- 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.