You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* There is a special syntax to work with pronous in JavaScript. A function can be made async by using async keyword.
An async function always returns a promise, other values are wrapped in a promise automatically.
The await keyword makes javascript wait untill the promise settles and returns its value. Its just a more elegant syntax of getting the promise result.*/
async function harry() {
let delhiWeather = new Promise((resolve, reject) => {
setTimeout(() => {
resolve("27 Deg")
}, 2000)
})
let bangaloreWeather = new Promise((resolve, reject) => {