ES6 introduced arrow function syntax, a shorter way to write functions by using the special “fat arrow” notation.
Arrow functions remove the need to type out the keyword function every time you need to create a function. Instead, you first include the parameters inside the ( ) and then add an arrow that points to the function body surrounded in { }.
It’s important to be familiar with the multiple ways of writing functions because you will come across each of these when reading other JavaScript code.
Смотрите видео Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Arrow Functions онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dusan Cajic 23 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 97 раз и оно понравилось 1 людям.