-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
53 lines (35 loc) · 882 Bytes
/
index.js
File metadata and controls
53 lines (35 loc) · 882 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
46
47
48
49
50
51
52
53
// let arr=[1,2,3,4]
// let arr2=[2,34,5,...arr]
// console.log(arr2);
// let obj={
// name:"anu",
// id:1
// }
// let {name,id}=obj
// console.log(name,id);
// let arr=[1,2,3,4,4]
// let[a,b,c]=arr
// console.log(a,b,c);
// pure function-no change how many times you call
// impure function-it can chnge for eg. increment in function
// first class function- a function stored in variable
//function curring
// function add(){
// console.log('hii');
// return function(b){
// console.log('hwllo');
// }
// }
// add()()
// function add(a){
// return function(b){
// console.log(a+b);
// }
// }
// add(2)(3)
import {user } from "./home.js";
console.log(user);
import a from "./home"
share(2,3)
// import a from "./home.js"
// console.log(a);