-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (41 loc) · 1.42 KB
/
index.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
// TODO: Buatlah data dari kedua user di sini
// Tentukan tipe data dan struktur data yang menurut kalian tepat
// Kalian bisa membuat variabel lain untuk dimasukkan ke dalam atribut user agar lebih mudah dibaca
const firstUser = {
name: 'Monica',
gender: 'Female',
age: 17,
email: "[email protected]",
favoriteColor: ["Yellow", "Pink", "White", "Purple"],
isHavePet: "Yes",
education: [
{name: "SD 01", city: "Jakarta", graduate:"2016"},
{name: "SMP 02", city: "Jakarta", graduate: "2019"},
{name: "SMA 03", city: "Tangerang"}],
favoriteRestaurant: ["Bento", "Sushi", "Pancake", "Eggy", "Tempura", "Padang", "Tteok"],
};
const secondUser = {
name: "Wendy",
gender: "Male",
age: 23,
email: "[email protected]",
favoriteColor: ["Blue", "Black", "Grey"],
isHavePet: "No",
education: [
{name: "SD 02", city: 'Jakarta', graduate: "2010"}, {city: "Bogor", graduate: "2013"},
{ name: "SMA 01", city: "Surabaya", graduate: "2016"},
{name: "Universitas Maju", city: "Tangerang"}
],
favoriteRestaurant: ["Tempura","Bento", "Sushi", "Padang", "Katsu", "Geprek", "Pancake", "Eggy"]
};
// TODO: Masukkan hasil akhir dari kedua user di sini
const users = [firstUser, secondUser];
// ! JANGAN MODIFIKASI LINE DI BAWAH
function main() {
console.log(users.length || users.size);
console.log(users);
}
main();
module.exports = {
users
};