This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "prepaid", | |
"productId": "57", | |
"categoryId": "56", | |
"productAmount": "100000", | |
"mobileNumber": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"voucherStockCategory": "AS:600" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"amount": 25000, | |
"itemId": "XL:PRE" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// group object by property | |
const books = [ | |
{ | |
title: "Sebuah Seni Untuk Bersikap Bodo Amat", | |
author: "Mark Manson" | |
}, | |
{ | |
title: "Segala - galanya Ambyar", | |
author: "Mark Manson" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numbers = [10, 20, 30, 40]; | |
var sum = numbers.reduce((acc, current) => acc + current, 0); | |
console.log(sum); // hasilnya 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const books = [ | |
{ | |
title: "Sebuah Seni Untuk Bersikap Bodo Amat", | |
author: "Mark Manson" | |
}, | |
{ | |
title: "Segala - galanya Ambyar", | |
author: "Mark Manson" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type":"prepaid", | |
"productCode": "AXIS25", | |
"productName": "Axis 25.000", | |
"productType": "mobile" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
NewerOlder