Yo ninjas, in this Ecmascript 6 tutorial, I’ll introduce you to the spread operator in JavaScript, and how we can use it to essentially ‘spread’ the contents of an array.

+ Chrome Canary –
+ Brackets editor –
+ Babel –

You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage…


========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – or

================== Social Links ==================

Twitter – @TheNetNinja –


  1. I just love your tutorials. Once I get my new job, I'll send you flowers. And by the way, I specialise in English phonology and I just love your accent, especially the "dash" sound as in 'number', 'touched' etc.

  2. window.onload = function() {

    var nums = [3,5,7];

    function addNums(a,b,c){
    console.log(a + b + c);


    How are 3, 5, and 7 assigned to the a, b, and c in the function? I don't understand that. 3, 5, and 7 are part of an array assigned to the variable named nums… the function is using "addNums", not "nums"… so how are 3, 5, and 7 assigned to a, b, and c?


  3. I don't know why there are very less views on your videos. Anyone can easily understand. Your teaching style is awesome. I will definitely gonna suggest your channel to my friends. Any thanks brother for all your efforts. God bless you.

  4. I've been wanting to do something like this for weeks, and a short few minute video just gave me the result I wanted to have happen in seconds… So cool! I'm in your debt… :o)


Please enter your comment!
Please enter your name here