diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md index 58a393eff..2800b8dde 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md @@ -1 +1,5 @@ -# Default params \ No newline at end of file +# Default Parameters + +Default function parameters allow named parameters to be initialized with default values if no value or `undefined` is passed. + +Default Parameters - MDN Docs diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md index 41c37ca23..04318e655 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md @@ -1 +1,5 @@ -# Rest params \ No newline at end of file +# Rest Parameters + +The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent [variadic functions](https://en.wikipedia.org/wiki/Variadic_function) in JavaScript. + +Rest Paremeters - MDN Docs diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md index f2db1b6c8..d0dde10ac 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md @@ -3,4 +3,3 @@ The parameter is the name given to the variable declared inside the definition of a function. There are two special kinds of syntax: default and rest parameters. Function Parameters -