Skip to content

Commit 6758fbc

Browse files
committed
Added links to Table of content
1 parent 0599438 commit 6758fbc

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

  • Topics/01. Functions-and-Function-Expressions

‎Topics/01. Functions-and-Function-Expressions/README.md‎

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@
1212

1313
<!-- attr: { id:'', showInPresentation:true, hasScriptWrapper:true } -->
1414
# Table of Contents
15-
- Functions in JavaScript
16-
- Function object
17-
- Defining Functions
15+
- [Functions in JavaScript](#js-functions)
16+
- [Function object](#function-object)
17+
- [Defining Functions](#defining-functions)
1818
- Function declarations
1919
- Function expressions
2020
- Function constructor
2121
- Expression vs. declaration
22-
- Function properties
23-
- Function methods
22+
- [Function properties](#function-properties)
23+
- [Function methods](#function-methods)
2424

2525
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic01.png" style="top:32.88%; left:65.96%; width:38.79%; z-index:-1" /> -->
2626

2727

2828
<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
2929
<!-- # Table of Contents -->
30-
- Recursion
30+
- [Recursion](#recursion)
3131
- Factorial example
3232
- Traversing the DOM
3333
- Recursion with expressions
34-
- Nested functions
35-
- Immediately-invoked function expressions
34+
- [Nested functions](#nested-functions)
35+
- [Immediately-invoked function expressions](#iifes)
3636

3737
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic02.png" style="top:15.22%; left:67.55%; width:38.79%; z-index:-1" /> -->
3838

3939
<!-- section start -->
4040

41-
<!-- attr: { id:'', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
41+
<!-- attr: { id:'js-functions', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
4242
# Functions in JavaScript
4343

4444
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic03.png" style="top:42.60%; left:60.72%; width:35.21%; z-index:-1" /> -->
@@ -86,9 +86,12 @@ function printMsg(msg){
8686
## [Demo]() -->
8787
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic05.png" style="top:32.44%; left:31.50%; width:46.43%; z-index:-1" /> -->
8888

89+
90+
91+
8992
<!-- section start -->
9093

91-
<!-- attr: { id:'', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
94+
<!-- attr: { id:'function-object', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
9295
# Function Object
9396
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic06.png" style="top:42.75%; left:30.12%; width:38.44%; z-index:-1" /> -->
9497

@@ -137,7 +140,7 @@ arr.sort(orderBy);
137140

138141
<!-- section start -->
139142

140-
<!-- attr: { id:'', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
143+
<!-- attr: { id:'defining-functions', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
141144
<!-- # Defining Functions -->
142145
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic08.png" style="top:43.76%; left:28.73%; width:45.30%; z-index:-1" /> -->
143146

@@ -261,7 +264,7 @@ new Function([optional arguments], body);
261264

262265
<!-- section start -->
263266

264-
<!-- attr: { id:'', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
267+
<!-- attr: { id:'function-properties', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
265268
<!-- # Function Properties
266269
## Object, Values, Methods -->
267270

@@ -280,6 +283,9 @@ new Function([optional arguments], body);
280283

281284
<!-- section start -->
282285

286+
<!-- attr: { id:'function-methods', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
287+
<!-- # Function Methods -->
288+
283289
<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
284290
# Function Methods
285291
- Functions have methods as well
@@ -327,7 +333,7 @@ new Function([optional arguments], body);
327333
## [Demo]() -->
328334

329335
<!-- section start -->
330-
<!-- attr: { id:'', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
336+
<!-- attr: { id:'recursion', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
331337
<!-- # Recursion
332338
## Calling functions from themselves -->
333339
<!-- <img class="slide-image" showInPresentation="true" src="imgs\pic15.png" style="top:53.66%; left:32.63%; width:35.83%; z-index:-1" /> -->
@@ -535,6 +541,9 @@ console.log(factorial2(5)); //logs 120 - correct
535541

536542
<!-- section start -->
537543

544+
<!-- attr: { id:'nested-functions', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
545+
<!-- # Nested Functions -->
546+
538547
<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
539548
# Nested Functions
540549
- Functions can be declared everywhere in the JavaScript code
@@ -553,6 +562,9 @@ console.log(factorial2(5)); //logs 120 - correct
553562

554563
<!-- section start -->
555564

565+
<!-- attr: { id:'iifes', class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
566+
<!-- # Immediately Invoked<br/>Function Expressions -->
567+
556568
<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
557569
# Immediately Invoked<br/>Function Expressions
558570
- In JavaScript, functions expressions can be **invoked immediately** after they are defined

0 commit comments

Comments
 (0)