Nice video. I love the arrow function syntax in JS but one has to know that they are not always interchangeable with the traditional 'function' syntax. For instance 'this' does not behave the same within arrow functions and there is also the fact that your functions aren't hoisted when they are not declared with 'function'. This could be the topic for another one of your great videos.
Nice video. I love the arrow function syntax in JS but one has to know that they are not always interchangeable with the traditional 'function' syntax. For instance 'this' does not behave the same within arrow functions and there is also the fact that your functions aren't hoisted when they are not declared with 'function'. This could be the topic for another one of your great videos.
Cool thanks for the clarification. I haven't seriously coded JS in many years, so I've got a bit of reading to do :)