3 ms·
Ehm. No. JavaScript will return a Promise. It’s “type” is Object as pretty much anything else in JavaScript.
by noncoml 7y ago
Ehm. No. JavaScript will return a Promise. It’s “type” is Object as pretty much anything else in JavaScript.
- endless1234 7y agoBut isn't a Promise for all intents and purposes the same as a Future here?
- marcoms 7y agoYes, but I think they are emphasising that only a promise will be returned. Any further type information is not given
- wwright 7y agoCheck out structural typing. I would say it’s the type system JavaScript uses for non-primitive values. The “dynamic” appearance is just that JavaScript doesn’t center the type system in its UX.