TGViewer
As For JS As For JS @asforjavascript · 3.08K subscribers
Post #1624 1.94K
К вопросу о задачах про промисы, которые имеют смысл.

(
()=>{
var thePromise = Promise.resolve("Yo");
var thePromiseEtalon = thePromise;
console.log (Promise.resolve( thePromise ) === thePromise, thePromiseEtalon === thePromise);
// true true

// Тут нужно добавить одно выражение чтобы
console.log (Promise.resolve( thePromise ) === thePromise, thePromiseEtalon === thePromise);
// false true

// Тут нужно добавить одно выражение чтобы
console.log (Promise.resolve( thePromise ) === thePromise, thePromiseEtalon === thePromise);
// true true

}
)()
More from @asforjavascript
  1. Oct 3, 2026Доброго вам Утрааааа
  2. Oct 3, 2026Архив орг, вводит ограничение до двух публикаций в месяц от одного автора. https://blog.ar…
  3. Oct 2, 2026Если я пропустил за предыдущие 100500 сообщений, что-то, что было для Вас важно - тыкнете…
  4. Oct 2, 2026Post #1727
  5. Oct 2, 2026Мій добрий знайомий попросив опублікувати: Збираємо перший потік Zunft Безкоштовної програ…
  6. Oct 1, 2026Топ любимых фразочек моего врача. Не в смысле за его авторством, но в смысле частоты их уп…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →