Skip to content

Instantly share code, notes, and snippets.

{
"type": "prepaid",
"productId": "57",
"categoryId": "56",
"productAmount": "100000",
"mobileNumber": ""
}
{
"voucherStockCategory": "AS:600"
}
{
"amount": 25000,
"itemId": "XL:PRE"
}
{
"item": "freefire_720",
"product": "free_fire"
}
// jika keterangan product tidak ada di excel, maka isikan seperti berikut :
// di develop isikan host2host: false, sedangkan jika di production isikan host2host: true
{
"item": "RBLX10",
"host2host": true
// group object by property
const books = [
{
title: "Sebuah Seni Untuk Bersikap Bodo Amat",
author: "Mark Manson"
},
{
title: "Segala - galanya Ambyar",
author: "Mark Manson"
},
var numbers = [10, 20, 30, 40];
var sum = numbers.reduce((acc, current) => acc + current, 0);
console.log(sum); // hasilnya 100
// for loop
var numbers = [10, 20, 30, 40];
var sum = 0;
for (var i = 0; i < numbers.length; i++) {
sum += numbers[i];
}
console.log(sum); // hasilnya adalah 100
const books = [
{
title: "Sebuah Seni Untuk Bersikap Bodo Amat",
author: "Mark Manson"
},
{
title: "Segala - galanya Ambyar",
author: "Mark Manson"
},
{
{
"type":"prepaid",
"productCode": "AXIS25",
"productName": "Axis 25.000",
"productType": "mobile"
}
const student = [
{ id: 11, name: "Smith" },
{ id: 12, name: "Roger" },
{ id: 13, name: "Romeo" },
{ id: 14, name: "Jesicca" },
{ id: 15, name: "Ellen" }
];
// // what we need ['smith', 'Roger', 'Romeo', 'Jesicca','Ellen']