div { display: flex; justify-content: center;}/* Как будут выровнены элементы? */
const a = [1, 2, 3];const b = a.map(num => { if (num > 1) return num;});console.log(b);
async function getData() { return "Hello";}console.log(getData());
div { width: 100px; height: 100px; background: red; display: none;}/* Будет ли элемент занимать место на странице? */
const a = {};const b = { key: "b" };const c = { key: "c" };a[b] = 123;a[c] = 456;console.log(a[b]);
console.log(typeof null);console.log(typeof (() => {}));
.element { position: static; z-index: 999;}/* Будет ли элемент поверх остальных? */
const numbers = [1, 2, 3, 4];const res = numbers.reduce((acc, curr) => acc + curr);console.log(res);
const str = "Hello";str.test = 5;console.log(str.test);
/* font-size у html равен 16px */.container { font-size: 20px;}.text { font-size: 2rem;}/* Какой размер шрифта будет у .text? */