Node.js · Middle · Question 16 of 75

What is a Buffer?

Explanation

Buffers hold binary data: file contents, network packets, images. Convert with buf.toString("utf8") or Buffer.from(text, "utf8").

Further reading

Problem with a question

Node.js · Middle · question 16

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz