Skip to content

Commit ffa254b

Browse files
committed
fix tab indentation as mentioned
1 parent a153c79 commit ffa254b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

id-ID/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,8 +2685,8 @@ Variables with the `const` and `let` keyword are _block-scoped_. A block is anyt
26852685

26862686
```javascript
26872687
fetch('https://www.website.com/api/user/1')
2688-
.then(res => res.json())
2689-
.then(res => console.log(res));
2688+
.then(res => res.json())
2689+
.then(res => console.log(res))
26902690
```
26912691

26922692
- A: The result of the `fetch` method.
@@ -4920,10 +4920,10 @@ Mencatat `animals[dog]`, atau sebenarnya `animals["object Object"]` karena mengo
49204920

49214921
```javascript
49224922
const user = {
4923-
4924-
updateEmail: (email) => {
4925-
this.email = email;
4926-
},
4923+
4924+
updateEmail: (email) => {
4925+
this.email = email;
4926+
},
49274927
};
49284928
49294929
user.updateEmail("[email protected]");
@@ -4950,20 +4950,20 @@ Fungsi `updateEmail` adalah fungsi panah, dan tidak terikat ke objek `user`. Art
49504950
###### 152. Apa hasilnya?
49514951

49524952
```javascript
4953-
const promise1 = Promise.resolve("First");
4954-
const promise2 = Promise.resolve("Second");
4955-
const promise3 = Promise.reject("Third");
4956-
const promise4 = Promise.resolve("Fourth");
4953+
const promise1 = Promise.resolve('First')
4954+
const promise2 = Promise.resolve('Second')
4955+
const promise3 = Promise.reject('Third')
4956+
const promise4 = Promise.resolve('Fourth')
49574957
49584958
const runPromises = async () => {
4959-
const res1 = await Promise.all([promise1, promise2]);
4960-
const res2 = await Promise.all([promise3, promise4]);
4961-
return [res1, res2];
4962-
};
4959+
const res1 = await Promise.all([promise1, promise2]);
4960+
const res2 = await Promise.all([promise3, promise4]);
4961+
return [res1, res2];
4962+
}
49634963
49644964
runPromises()
4965-
.then((res) => console.log(res))
4966-
.catch((err) => console.log(err));
4965+
.then(res => console.log(res))
4966+
.catch(err => console.log(err))
49674967
```
49684968

49694969
- A: `[['First', 'Second'], ['Fourth']]`

0 commit comments

Comments
 (0)