tubeshowcase●1,195,279 videos♡ My collection 0
← Learn to Code

Learn to Code03:03

JavaScript spread operator 🌈

Bro Code ↗

From the creator

JavaScript spread operator tutorial example explained #javascript #spread #operator // ********* index.js ********* // ES6 feature // spread operator = ... // Expands "spreads" an array or iterable // into many arguments needed for a function. /* function sum(a, b, c){ return a + b + c; } let numbers = [1, 2, 3]; console.log(sum(...numbers)); */ let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; console.log(Math.max(...numbers));

Published 2021-09-01 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code