Struktur konfigurasi objek lokal JavaScript dan JSON untuk platform hiburan 99ls.
{ } example.js{ } example.json
Salin kode
JavaScript
// Contoh konfigurasi objek lokal platform 99ls
const localPlatformConfig = {
brand: "99ls" ,
country: "id" ,
supportedPlatform: "android" ,
featuredGames: [
{ id: "116" , name: "Battleground" , category: "Aksi" },
{ id: "200" , name: "Touchdown Wins" , category: "Olahraga" },
{ id: "184" , name: "Alibaba Cave" , category: "Petualangan" },
{ id: "134" , name: "Myst Spirits" , category: "Fantasi" },
{ id: "172" , name: "Doomsday Rampg" , category: "Aksi Petualangan" }
],
promotions: {
welcomePackage: {
active: true ,
startDate: "2026-11-01" ,
endDate: "2026-12-31"
}
}
};
function getActiveGameList(config) {
return config.featuredGames.map(game => game.name);
} JSON
{
"brand" : "99ls" ,
"country" : "id" ,
"supportedPlatform" : "android" ,
"featuredGames" : [
{
"id" : "116" ,
"name" : "Battleground" ,
"category" : "Aksi"
},
{
"id" : "200" ,
"name" : "Touchdown Wins" ,
"category" : "Olahraga"
},
{
"id" : "184" ,
"name" : "Alibaba Cave" ,
"category" : "Petualangan"
},
{
"id" : "134" ,
"name" : "Myst Spirits" ,
"category" : "Fantasi"
},
{
"id" : "172" ,
"name" : "Doomsday Rampg" ,
"category" : "Aksi Petualangan"
}
],
"promotions" : {
"welcomePackage" : {
"active" : true ,
"startDate" : "2026-11-01" ,
"endDate" : "2026-12-31"
}
}
}