IT quiz
All questions
Sign in
Sign up
JavaScript
HTML
CSS
PostgreSQL
PHP
Linux
Git
Docker
SCSS
TypeScript
SQL
Vue
DNS
Go
frontend (web)
Redis
backend
Gitlab
CI/CD
Vite
webpack
Node.js
HTTP
Python
Kotlin
Nuxt
Question #225
Author:
admin
tags:
Node.js
Buffer
objects are used...
...to represent a sequence of bytes.
..to store a function call arguments.
..to start a TCP server to listen on some port.
..to get cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
Answer
Show explanation
Buffer
objects are used to represent a fixed-length sequence of bytes. Many Node.js APIs support Buffers.
The
Buffer
class is a subclass of JavaScript's
Uint8Array
class and extends it with methods that cover additional use cases.
Node.js APIs accept plain Uint8Arrays wherever Buffers are supported as well.
Rate the difficulty of the question:
1
2
3
4
5
6
7
8
9
10
easy
hard
←
Previous question (Node.js)
Write new comment