Is it possible to assign a default value to a function parameter in the function definition?

It is called default function parameters . It allows formal parameters to be initialized with default values if no value or undefined is passed. NOTE: It wont work with Internet Explorer or older browsers.

Sizin İçin Seçtik  How do you pass a function as a parameter?

Leave a Reply

Your email address will not be published. Required fields are marked *

Is it possible to assign a default value to a function parameter in the function definition?

It is called default function parameters . It allows formal parameters to be initialized with default values if no value or undefined is passed. NOTE: It wont work with Internet Explorer or older browsers.

Sizin İçin Seçtik  PayPal dan paramı nasıl alırım?

Leave a Reply

Your email address will not be published. Required fields are marked *