Skip to content

Commit 8de78ff

Browse files
committed
Refactor: Order list API get created by remove query.
1 parent 82ca54e commit 8de78ff

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

basic/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ console.log(result);
4545
for (let lst in list) {
4646
console.log(list[lst]);
4747
}
48-
*/
48+
*/

basic/promise.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ example2 = () => {
3030
promise.then(function () {
3131
console.log('Success, you got a new job.');
3232
}).catch(function () {
33-
console.log('Some error has occured');
33+
console.log('Some error has occured.');
3434
});
3535
}
3636

@@ -46,7 +46,7 @@ example3 = () => {
4646
reject();
4747
}
4848
}).then(function () {
49-
console.log("I have completed learning programming.");
49+
console.log("I've completed learning programming.");
5050
}).catch(function () {
5151
console.log("I haven't completed learning JS programming.");
5252
})

basic/switch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var option = 3;
1+
let option = 3;
22

33
switch (option) {
44
case 1:
@@ -20,4 +20,3 @@ switch (option) {
2020
console.log("You selected option 6.");
2121
break; // technically, not needed
2222
}
23-

0 commit comments

Comments
 (0)