-
Notifications
You must be signed in to change notification settings - Fork 0
/
rep.js
13 lines (10 loc) · 866 Bytes
/
rep.js
1
2
3
4
5
6
7
8
9
10
11
12
13
// The Eloquent Javascript
// Chapter 1 Summary
// We looked at four types of JavaScript values in this chapter: numbers, strings, Booleans, and undefined values.
// Such values are created by typing in their name (true, null) or value (13, "abc"). You can combine and transform values with operators.
// We saw binary operators for arithmetic (+, -, *, /, and %), string concate- nation (+), comparison (==, !=, ===, !==, <, >, <=, >=), and
// logic (&&, ||), as well as several unary operators (- to negate a number, ! to negate logically, and typeof to find a value’s type) and
// a ternary operator (?:) to pick one of two values based on a third value.
// This gives you enough information to use JavaScript as a pocket calculator but not much more.
// The next chapter will start tying these expressions together into basic programs.
// chapter 2 Summary