mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 20:49:49 +02:00
Added MDN Docs links to rest and default parameters readme file following the guidelines (#2002)
* added link to mdn docs for rest parameter * Added links to MDN documentation for default parameters, rest parameters and function parameters * added rest parameter MDN Docs following guide lines * Added MDN Docs links to rest and default parameters in function parameters * Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md * Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md * Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md * Update readme.md Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2b0e39391e
commit
183c7db94f
@@ -1 +1,5 @@
|
|||||||
# Default params
|
# Default Parameters
|
||||||
|
|
||||||
|
Default function parameters allow named parameters to be initialized with default values if no value or `undefined` is passed.
|
||||||
|
|
||||||
|
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters'>Default Parameters - MDN Docs</BadgeLink>
|
||||||
|
@@ -1 +1,5 @@
|
|||||||
# Rest params
|
# 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.
|
||||||
|
|
||||||
|
<BadgeLink colorScheme='yellow' badgeText='Rest parameters MDN documentation' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters'>Rest Paremeters - MDN Docs</BadgeLink>
|
||||||
|
@@ -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.
|
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.
|
||||||
|
|
||||||
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions#function_parameters">Function Parameters</BadgeLink>
|
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions#function_parameters">Function Parameters</BadgeLink>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user