Skip to content

Commit 96b596c

Browse files
feat: add funciton in depth
1 parent f1e572d commit 96b596c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Function Statement aka Function Declaration
2+
a();
3+
function a() {
4+
console.log("a called");
5+
}
6+
7+
// Function Expression
8+
let b = function () {
9+
console.log("b called");
10+
};
11+
b();
12+
13+
// Anonymous Funtions
14+
let c = function () {
15+
console.log("anonymous function");
16+
};
17+
18+
// Named Function Expression
19+
let d = function abcd() {
20+
console.log("Named function expression");
21+
};
22+
23+
// First Class Functions
24+
// the functions which we can pass to another function pass as a value, can be returned from another function is called frist class functions.
25+

0 commit comments

Comments
 (0)