What is a default parameter value?

The default parameter is a way to set default values for function parameters a value is no passed in (ie. it is undefined ). In a function, Ii a parameter is not provided, then its value becomes undefined . In this case, the default value that we specify is applied by the compiler.

Sizin İçin Seçtik  Are gamma rays harmful to humans?

Leave a Reply

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

What is a default parameter value?

The default parameter is a way to set default values for function parameters a value is no passed in (ie. it is undefined ). In a function, Ii a parameter is not provided, then its value becomes undefined . In this case, the default value that we specify is applied by the compiler.

Sizin İçin Seçtik  What is constructor and its types?

Leave a Reply

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