OS
Size: a a a
OS
DL
ВГ
OS
ВГ
ВГ
const arr = [];console:
const arrNew = new Array(2);
const arrMap = [1, 2];
arr.length = 2;
console.log(arrMap.map((a) => {}));
console.log(arr);
console.log(arrNew);
[ undefined, undefined ]
[ <2 empty items> ]
[ <2 empty items> ]
MS
N
VK
MS
ВГ
N
MS
N
MS
ВГ
VB
VB
VB
const app = express();
const server = http.createServer(app);
const port = 3000;
const wss = new WebSocketServer({ server });
server.listen(port, () => {
console.log(`App is listening at http://localhost:${port}`)
});