All challenges
Multiple ChoiceIntermediate 30s

.finally() Method

Choose the best answer for: .finally()
Options
  1. 1.finally(cb) is deprecated and removed in modern JavaScript
  2. 2.finally(cb) catches errors and resolves with the caught value
  3. 3.finally(cb) runs only when the promise fulfills successfully
  4. 4.finally(cb) runs regardless of fulfillment or rejection

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle