ES6: Default argument values

preview_player
Показать описание
In JavaScript we used to code up a bunch of boilerplate when we wanted default values for arguments to a function. ES6 solves this with default arguments.

Рекомендации по теме
Комментарии
Автор

If you're going to make a tutorial you ought to break it down for people who are new to this.
- Why are you using backTicks instead of apostrophes?
- Why are you using the dollar sign?
- Why single bracket instead of double bracket?

All these little details are important and you gotta explain why you're using them as opposed to the old JS way so we can understand the syntax instead of just whizzing through the code and we're left wondering what you just did.

ers