What is Default function parameter in JavaScript | Functions | JavaScript

Pubblicato il: 20 dicembre 2021
sul canale di: procademy
2,891
33

In the functions lecture, we learned that we can pass a data to a function using function parameters. And when we call that function, we need to specify the value for that function parameter.

But what will happen if we dont pass a value for some parameters? Will it throw an error? Let's answer this question in this lecture. ANd along the way, let's also learn what is a default parameter and how to set a default value for a function parameter.


In questa pagina del sito puoi guardare il video online What is Default function parameter in JavaScript | Functions | JavaScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato procademy 20 dicembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,891 volte e gli è piaciuto 33 spettatori. Buona visione!