.button { padding: 10px 20px; border: 2px solid black; border-radius: 5px;}
const items = ['apple', 'banana', 'cherry'];items.reverse();console.log(items[0]);
const map = new Map();map.set('a', 1);map.set('b', 2);map.set('a', 3);console.log(map.size, map.get('a'));
.container { width: 100vw; height: 100vh;}
const arr = [3, 1, 4, 1, 5];const sorted = [...arr].sort((a, b) => a - b);console.log(arr[0], sorted[0]);
const numbers = [10, 20, 30, 40, 50];const [first, second, ...rest] = numbers;console.log(rest.length);
.image { max-width: 100%; height: auto;}
const btn = document.querySelector('.btn');btn.addEventListener('click', function() { this.textContent = 'Clicked';});
for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 0);}
console.log(1 + "2" - 1);