JS_HOME_WORK/32-add-start-of-the-array/start.js
2025-01-17 01:00:07 +01:00

15 lines
475 B
JavaScript
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.

/** ЗАДАЧА 32 - Добавление элементов в начало массива
*
* 1. Добавьте элементы а начало массива:
* - сначала строку "Привет"
* - потом число 100
*
* 2. Выведите длину результирующего массива в консоль
*/
const myArray = [true, null]
// Напишите код здесь
console.log(myArray) // [100, "Hello", true, null]