-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
46 lines (42 loc) · 970 Bytes
/
test.js
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
var names = ["chocolat", "cheese", "kda mena", "halal menthe", "kinder pingui", "Zitoune", "Mechoui f chbab", "Kebch", "Rolex"]
var prices = [12, 8, 7, 5, 15, 300, 4, 2, 1000]
let a = names.map(e => {
return test = {
names
}
})
var product = [
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
},
{
"userId": 1,
"id": 2,
"title": "quis ut nam facilis et officia qui",
"completed": false
},
{
"userId": 1,
"id": 3,
"title": "fugiat veniam minus",
"completed": false
},
{
"userId": 1,
"id": 4,
"title": "et porro tempora",
"completed": true
},
{
"userId": 1,
"id": 5,
"title": "laboriosam mollitia et enim quasi adipisci quia provident illum",
"completed": false
}
]
var test = product.map(e => {
return <h1>{e.name}</h1>
})