forked from nikkybel/rayhab-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript.js
More file actions
60 lines (31 loc) · 610 Bytes
/
Copy pathScript.js
File metadata and controls
60 lines (31 loc) · 610 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
54
55
56
57
58
59
60
let method = new Array();
method.push("60");
method.push("54");
method.push("12");
method.push("89");
let copy = method.map(function(num){
return num * 2;
});
alert(method);
alert(copy);
let approve = method.filter(function(num){
return num > 5;
});
alert(approve);
let user = {
name : "Rayhab",
};
let {name,age,city,} = user;
alert(name);
alert(typeof name);
alert(classrep);
user.name = "Rayhab";
user.age = age;
user.city = Abuja;
alert(user.name);
alert(user.age);
alert(user.city);
alert(user);
//Arrow function//
let multiply = a => a * a;
console.log(multiply(2,5));