Default Function Parameters In JavaScript - ES6 !

preview_player
Показать описание
In JavaScript, a parameter has a default value of undefined. It means that if you don’t pass the arguments into the function, its parameters will have the default values of undefined.

ES6 provides you with an easier way to set the default values for the function parameters.

#javascript #es6 #javascript_tutorial
Рекомендации по теме