4 ms·
One Thing Nobody Explained to You About TypeScript
- everybodyknows 2y ago> But where does the document come from? You can say it's a global variable in JavaScript and, by all means, you would be right. No, you'd be wrong. Document is a Web API: https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement https://developer.mozilla.org/en-US/docs/Web/API/Document/cr...