-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunc.html
More file actions
45 lines (35 loc) · 686 Bytes
/
Copy pathfunc.html
File metadata and controls
45 lines (35 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Function</title>
</head>
<body>
<script>
// 1. Simple
// 2. Anonymous
// 3. Fed arrow
// 4. Function curring
// //fed arrow
// var x = ()=> {
// var a=10
// var b=20
// return a+b
// }
// console.log(x());
// func. curring
// var x= (a)=> {
// return (b)=> {
// return (c) =>{
// return a+b+c
// }
// }
// }
// console.log(x(1)(3)(7));
// DOM= Document Object Model
document.getElementById('h1');
</script>
<!-- <h1>kunal garg</h1> -->
</body>
</html>