Skip to content

Commit da8fe98

Browse files
authored
Add missed parenthesis and semicolon (ronreiter#714)
1 parent 56327d4 commit da8fe98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tutorials/learn-js.org/en/Promises.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To make the code above work, we will need to write the function in the following
3333

3434
result.then(function(status) {
3535
console.log("The status from the server is: ", status.ok);
36-
}
36+
});
3737
}
3838

3939
Notice that we used the `then` function here, which is one of the methods of a `Promise`.
@@ -166,4 +166,4 @@ Solution
166166
upperCaseAsync("steve").then(console.log);
167167
upperCaseAsync(null).catch((x) => {
168168
console.log("No string received!");
169-
});
169+
});

0 commit comments

Comments
 (0)