data = [
{
"id": 0.63773,
"nama": "Zen",
"asal": "Samarinda"
},
{
"id": 0.5262,
"nama": "Yogi",
"asal": "Loa Janan"
}
]
// create
// tambah data
data.push({
id: Math.random(),
nama: "Maryam",
asal: "Buah hati"
})
// read
// ambil data tertentu
x = data.filter(x => x.id == 0.5262)
// update
n = data.findIndex(x => x.id == 0.5262)
data[n].nama = "Anggi"
// delete
x = data.filter(x => x.id != 0.5262)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)