const array = Array.from({ length: 10 }, () => undefined);
let arrfun = new Array(n);
const array = Array.from({ length: 20 }, (v, i) =>
Math.floor(Math.random() * (10 - 1) + 1 ));
const set = new Set(array);
const result = [...set].slice(0, 5);
console.log(result);
const array = Array.from({ length: 10 }, (v, i) => i)
.sort((a, b) => 0.5 - Math.random())
.slice(0, 5);
console.log(array);
const a = [
[1, 2, 3],
['a', 'b', 'c'],
[4, 5, 6],
['d', 'e', 'f'],
[7, 8, 9],
];
console.log(a.reduce((acc, el) => [...acc, el[0]], []));
const name = 'Миша';
const years = 28;
const literal = `Я ${name}, мне ${years} лет`; // Я Миша мне 28 лет
$page = $_SERVER['PHP_SELF'];
$sec = "3";
header("Refresh: $sec; url=$page");