Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMuaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 Pointsdata
Can someone please explain line 17.Thanks
2 Answers
Jiten Mehta
Front End Web Development Techdegree Graduate 21,209 PointsNo worries Azzie Fuzzie . If you could give my response a thumbs up that would be great.
Also I found all the events related to stream events in Node. 'data' and 'end' are one of many.
Have a look = https://nodejs.org/api/stream.html#stream_stream
Muaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 PointsThanks mate Jiten Mehta.Much appreciated!
Jiten Mehta
Front End Web Development Techdegree Graduate 21,209 PointsJiten Mehta
Front End Web Development Techdegree Graduate 21,209 PointsHey Azzie, I was confused by this also. After a few google searches, i think I understand.
I have written out something similar to what Andrew has along with comments. This should hopefully make you understand better.
If this hasn't helped, try these links = https://www.w3schools.com/nodejs/nodejs_events.asp, https://stackoverflow.com/questions/17379050/node-js-on-function-what-does-it-do