en.javascript.info/1-js/4-data-structures/7-array/1-get-last-in-array/task.md
2015-01-11 01:54:57 +03:00

9 lines
No EOL
451 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Получить последний элемент массива
[importance 5]
Как получить последний элемент из произвольного массива?
У нас есть массив `goods`. Сколько в нем элементов -- не знаем, но можем прочитать из `goods.length`.
Напишите код для получения последнего элемента `goods`.