I’ve got what is probably a very stupid question, but I’ve been re-reading the relevant part of the book over and over, and still can’t seem to get it: On page 31 in the 5x5 input parser section, the
stdin.on 'data', (input) -> inputCallback input
line keeps tripping me up. It looks like we are passing ‘data’ and an anonymous function ‘(input) -> inputCallback input’ as arguments to stdin.on. What is ‘data’, exactly? To me, it just looks like a string. But what’s it for? Where does it come from? I feel like I’m missing something completely obvious.