3 ms·
I finished it yesterday, got stuck for a while in the Asynchonous Callbacks exercise. It wasn't completely clear to me what you wanted. I went back today and s
by frugalfrank 15y ago
I finished it yesterday, got stuck for a while in the Asynchonous Callbacks exercise. It wasn't completely clear to me what you wanted.
I went back today and saw that you changed the exercise and description.
"Define a function named doStuffAsync that takes one argument callback, that reads the contents of the file "passwords", appends "OWNED" and writes the results to file "world.txt", then calls callback. Remember, read doesn't return the file contents directly."
From the description shown above, It wasn't clear that you wanted world.txt to contain the content of 'passwords' plus 'OWNED' appended.
- nwhitehead 15y agoI'll reword it, I agree that it is confusing still.
- frugalfrank 15y agoAside from that one, everything else was very clear and helpful. I've read about closures a few times, but don't think I really got it until finishing your exercises. Thanks!