How to swap values with array destructuring method #javascript #beenumlearning #shorts

preview_player
Показать описание
How to swap values with array destructuring method #javascript #beenumlearning #shorts
Рекомендации по теме
Комментарии
Автор

let x=10, y=20;
[x, y] = [y, x];
console.log(x);
console.log(y);

BEENUMLEARNING
join shbcf.ru