We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e521f58 commit c2952a5Copy full SHA for c2952a5
chapter10/aloha.html
@@ -11,8 +11,8 @@
11
}
12
13
function hawaiianTranslator(word) {
14
- if (word == "Hello") return "Aloha";
15
- if (word == "Goodbye") return "Aloha";
+ if (word === "Hello") return "Aloha";
+ if (word === "Goodbye") return "Aloha";
16
17
18
sayIt(hawaiianTranslator);
chapter10/plane.html
@@ -29,7 +29,7 @@
29
30
function printPassenger(passenger) {
31
var message = passenger.name;
32
- if (passenger.paid === true) {
+ if (passenger.paid) {
33
message = message + " has paid";
34
} else {
35
message = message + " has not paid";
0 commit comments