Author: https://t.me/ahillary
Channel: https://t.me/semolina_code_python
Chat: https://t.me/python_with_ahillary
YouTube: https://www.youtube.com/@semolinacode
Coding training: https://t.me/how_to_code_web3
Prop trading: https://t.me/semolina_prop
Мы уже знаем методы, которые добавляют и удаляют элементы из начала или конца:
arr.push(...items)
– добавляет элементы в конец,arr.pop()
– извлекает элемент из конца,arr.shift()
– извлекает элемент из начала,arr.unshift(...items)
– добавляет элементы в начало.