promise.reject()

Difficulty: easy

Implement promiseReject(reason), a small version of Promise.reject.

It should return a promise that is already rejected with the provided reason.

More JS Coding

View all JS Coding →
JS CodingEasy

City Fetcher API

JS CodingHard

promise.all( )

JS CodingHard

promise.allSettled( )

JS CodingHard

promise.any( )

JS CodingHard

promise.race( )

JS CodingMedium

composeAsync

Related hubs

  • All JavaScript coding
  • JavaScript interview questions
  • JS polyfill interview questions
  • Debounce & throttle questions
  • React interview hub