Skip to content

Commit c2952a5

Browse files
committed
updates
1 parent e521f58 commit c2952a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chapter10/aloha.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212

1313
function hawaiianTranslator(word) {
14-
if (word == "Hello") return "Aloha";
15-
if (word == "Goodbye") return "Aloha";
14+
if (word === "Hello") return "Aloha";
15+
if (word === "Goodbye") return "Aloha";
1616
}
1717

1818
sayIt(hawaiianTranslator);

chapter10/plane.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
function printPassenger(passenger) {
3131
var message = passenger.name;
32-
if (passenger.paid === true) {
32+
if (passenger.paid) {
3333
message = message + " has paid";
3434
} else {
3535
message = message + " has not paid";

0 commit comments

Comments
 (0)