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
let a = new Promise(resolve=>resolve(1))
let b = new Promise(resolve => resolve(a))
console.info(a === b) // false
b = Promise.resolve(a)
console.info(a === b) // true
when run code, we will get false and true. what is difference?
The text was updated successfully, but these errors were encountered:
when run code, we will get
false
andtrue
. what is difference?The text was updated successfully, but these errors were encountered: