Home/Tutorials/Node.js/Events and Buffers

0 of 3 saved

Node.js5 min read

Events and Buffers

Read this chapter, write the program on this page, then pass a short check to open the next one.

Streams of data and binary.

Events and Buffers

Many Node APIs emit events. Buffers hold binary data. You will meet both when handling uploads and sockets.

  • EventEmitter pattern: on / emit.
  • Buffers are fixed-length byte sequences.
  • Prefer streams for large data.
console.log("events-ok");

After you read this chapter, use Write (when available) and Quiz on this page to lock it in.