.parent { display: flex; height: 200px;}.child { height: 50%; flex-grow: 1;}/* Какая высота будет у .child? */
const bird = { size: 'small'};const mouse = { name: 'Mickey', small: true};console.log(mouse[bird.size]);
const user = { name: "Alice" };Object.freeze(user);user.name = "Bob";console.log(user.name);
div { display: flex; justify-content: center;}/* Как будут выровнены элементы? */
const a = [1, 2, 3];const b = a.map(num => { if (num > 1) return num;});console.log(b);