From ced29fe7bfdbe04125b5820dbb4bb65924719466 Mon Sep 17 00:00:00 2001 From: Kamrul Islam Shahin <44506464+shahin-cuet@users.noreply.github.com> Date: Mon, 2 Nov 2020 16:27:54 +0600 Subject: [PATCH] fix some typo error --- 18_Day_Promises/18_day_promises.md | 6 +++--- 19_Day_Closures/19_day_closures.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/18_Day_Promises/18_day_promises.md b/18_Day_Promises/18_day_promises.md index 6d7be2a..46656dc 100644 --- a/18_Day_Promises/18_day_promises.md +++ b/18_Day_Promises/18_day_promises.md @@ -106,7 +106,7 @@ doSomething((err, result) => { ### Promise constructor -We can create a promise using the Promise constructor. We can create a new promise using the key word new followed by the word Promise and followed by a parenthesis. Inside the parenthesis it it takes a callback function. The promise callback function has two parameters which are the *resolve* and *reject* functions. +We can create a promise using the Promise constructor. We can create a new promise using the key word *new* followed by the word Promise and followed by a parenthesis. Inside the parenthesis it takes a callback function. The promise callback function has two parameters which are the *resolve* and *reject* functions. ```js // syntax @@ -169,7 +169,7 @@ doPromise ## Fetch API -The Fetch API provides an interface for fetching resources (including across the network). It will seem familiar to anyone who has used XMLHttpRequest, but the new API provides a more powerful and flexible feature set. In this challenge we will use fetch to request url and APIS. In addition to that let us see demonstrate use case of promises in accessing network resources using the fetch API. +The Fetch API provides an interface for fetching resources (including across the network). It will seem familiar to anyone who has used XMLHttpRequest, but the new API provides a more powerful and flexible feature set. In this challenge we will use fetch to request url and APIs. In addition to that let us see demonstrate use case of promises in accessing network resources using the fetch API. ```js const url = 'https://restcountries.eu/rest/v2/all' // countries api @@ -244,7 +244,7 @@ console.log('===== async and await') fetchData() ``` -🌕 You are real and you kept your promise and your reached to day 18. Keep your promise and settle the challenge with resolve. You are 18 steps a head to your way to greatness. Now do some exercises for your brain and for your muscle. +🌕 You are real and you kept your promise and your reached to day 18. Keep your promise and settle the challenge with resolve. You are 18 steps ahead to your way to greatness. Now do some exercises for your brain and for your muscle. ## Exercises diff --git a/19_Day_Closures/19_day_closures.md b/19_Day_Closures/19_day_closures.md index 4c96016..57d3ff7 100644 --- a/19_Day_Closures/19_day_closures.md +++ b/19_Day_Closures/19_day_closures.md @@ -80,7 +80,7 @@ console.log(innerFuncs.minusOne) ```sh 1 -1 +0 ``` 🌕 You are making progress. Maintain your momentum, keep the good work. Now do some exercises for your brain and for your muscle.