Тёмный

What is the output of [1,2,3]+[4,5,6]=? | JavaScript Tutorials | Interview Guide 

Code Pro
Подписаться 2,7 тыс.
Просмотров 1,2 тыс.
50% 1

In this video, I will show you what if we add two arrays with binary + operator in JavaScript.
Arrays have their own implementation of the toString method that returns a comma-separated list of elements.
JavaScript's + operator has two purposes: adding two numbers, or joining two strings. It doesn't have a specific behavior for arrays, when you try to add two arrays with binary + operator it converts both the arrays into strings and the final output will be a string as well.

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@deepmane5845
@deepmane5845 Год назад
hey can u teach stack and linked list
Далее
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
Редакция. News: 128-я неделя
57:33
Просмотров 1,8 млн
PORTAL SPAMMER🤬🤬🤬| Doge Gaming
00:19
Просмотров 1,3 млн
A Simpler Way to See Results
19:17
Просмотров 103 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 798 тыс.
Best Javascript Recursion Explanation on YouTube
10:38
Просмотров 143 тыс.
All Rust string types explained
22:13
Просмотров 158 тыс.
What is JSON ?
11:56
Просмотров 1,1 млн
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21