2.1. The Bare Essentials2.2. Using Variables2.2.1. Anatomy of a Variable Declaration2.2.2. Constants in This Changing World2.2.3. Taking It Literally2.3. Commenting Your Code2.3.1. Types of Comments2.3.1.1. Single-Line Comment2.3.1.2. Block Comments2.3.1.3. XML Comments2.3.1.4. Javadoc Comments2.3.2. When to Use Comments2.3.3. Self-Commenting Code2.4. Introducing Scope2.5. Introducing the Data Types2.5.1. Declaring Types2.5.2. Using Untyped Variables2.6. Connecting You to an Operator2.6.1. Unary vs. Binary Operators2.6.2. Order of Operations2.6.3. Some Commonly Used Operators2.6.3.1. Assignment (=)2.6.3.2. Arithmetic (+, −, *, /)2.6.3.3. Modulo (%)2.6.3.4. Increment (++) and Decrement (--)2.6.3.5. Compound Assignment Operators (+=, -=, *=, /=, and %=)2.6.3.6. Comma Operator (,)2.7. Making Logical Choices with Conditionals2.7.1. if Statements2.7.2. Equality (==)2.7.3. Testing Other Comparisons2.7.3.1. Greater Than (>) and Less Than (<)2.7.3.2. Not Equal to (!=)2.7.3.3. And (&&) and Or (||) Operators2.7.3.4. Checking for Null Values2.7.4. if..else2.7.5. switch2.7.6. The Conditional Operator2.8. Repeating Actions Using Loops2.8.1. Using for Loops2.8.2. Using for..in and for each..in2.8.2.1. for..in2.8.2.2. for each..in2.8.3. Using while and do..while2.8.3.1. while2.8.3.2. do..while2.8.4. Battle of the Loop Structures: for vs. while2.8.5. Avoiding Infinite Loops2.8.6. Using break and continue2.8.6.1. continue2.8.6.2. break2.9. Summary