Sobes.tech
Middle

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

sobes.tech AI

Answer from AI

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