From 63721de167320b7f848b8f4976215cc720e395f3 Mon Sep 17 00:00:00 2001 From: iancoel <84026047+iancoel@users.noreply.github.com> Date: Sun, 4 Sep 2022 08:34:18 -0300 Subject: [PATCH] Add JS functions, parameters, arrow functions and IIFEs (#1661) * Add javascript functions * Add javascript function parameters * Add javascript arrow functions * Add javascript IIFE * Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/readme.md * Update content/roadmaps/106-javascript/content/109-javascript-functions/102-arrow-functions.md * Update content/roadmaps/106-javascript/content/109-javascript-functions/103-iifes.md * Update content/roadmaps/106-javascript/content/109-javascript-functions/readme.md Co-authored-by: Kamran Ahmed --- .../101-function-parameters/readme.md | 7 ++++++- .../109-javascript-functions/102-arrow-functions.md | 6 +++++- .../content/109-javascript-functions/103-iifes.md | 6 +++++- .../content/109-javascript-functions/readme.md | 6 +++++- 4 files changed, 21 insertions(+), 4 deletions(-) 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 31509c110..f2db1b6c8 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 @@ -1 +1,6 @@ -# Function parameters \ No newline at end of file +# Function 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. + +Function Parameters + diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/102-arrow-functions.md b/content/roadmaps/106-javascript/content/109-javascript-functions/102-arrow-functions.md index 39affa173..303e30217 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/102-arrow-functions.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/102-arrow-functions.md @@ -1 +1,5 @@ -# Arrow functions \ No newline at end of file +# Arrow Functions + +Arrow Function is a new way of creating functions with the '=>' operator with a shorter syntax. + +Arrow function expressions diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/103-iifes.md b/content/roadmaps/106-javascript/content/109-javascript-functions/103-iifes.md index 464769c16..56c43f885 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/103-iifes.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/103-iifes.md @@ -1 +1,5 @@ -# Iifes \ No newline at end of file +# IIFE + +Immediately-Invoked Function Expression is a function that is executed immediately after it is created. + +IIFE — MDN Docs diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/readme.md b/content/roadmaps/106-javascript/content/109-javascript-functions/readme.md index e0c425f3e..9c16546dd 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/readme.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/readme.md @@ -1 +1,5 @@ -# Javascript functions \ No newline at end of file +# Functions + +Functions are blocks of code that execute whenever they are invoked. They are useful for placing code snippets executed in different places in the code. + +Functions - MDN Docs