Skip to content
Middle747 views

What happens if I use the await operator on a non-promise value?

Practice

AI answer

The value will be immediately resolved and returned without waiting. This is equivalent to Promise.resolve(value).