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>
pull/2007/head
Muhammad Najib Bala 2 years ago committed by GitHub
parent 2b0e39391e
commit 183c7db94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md
  2. 6
      content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md
  3. 1
      content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md

@ -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.
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions#function_parameters">Function Parameters</BadgeLink>

Loading…
Cancel
Save