3 ms·
There is no way of doing I/O in JavaScript's traditional browser environment without providing a callback argument. What about `window.prompt`? Or `documen
by judofyr 16y ago
There is no way of doing I/O in JavaScript's traditional browser environment
without providing a callback argument.
What about `window.prompt`? Or `document.write`?
- lalc 16y agohttp://www.boctaoe.com/ http://www.boctaoe.com/ (Man, I just learned about this site five minutes ago and it's already useful!)
- randylahey 16y agoI would hardly call window.prompt and document.write i/o since they never hit disk or network (to over-simplify). They're more like manipulating an object in memory. For real i/o in JavaScript, look at AJAX: Callback based.
- Ramone 16y agoConversely, some might say that input from the user and output to the user are really the only important i/o.
- deleted 16y ago[deleted]