Contoh konfigurasi JavaScript dan JSON untuk validasi katalog game lokal.
JavaScript
// Konfigurasi objek lokal untuk pengujian katalog game 888r
const localCatalogConfig = {
platform: "888r",
environment: "local_test",
defaultCategory: "Aksi & Petualangan",
featuredGames: [
{ id: "141", name: "Ninja Raccoon", active: true },
{ id: "135", name: "Spr Golf Drive", active: true },
{ id: "091", name: "Candy Superwin", active: false }
],
logStatus: function() {
return `${this.platform}: ${this.featuredGames.length} entri dimuat.`;
}
};
// Cetak status pengujian lokal
console.log(localCatalogConfig.logStatus());
JSON
{
"platform": "888r",
"environment": "local_test",
"defaultCategory": "Aksi & Petualangan",
"featuredGames": [
{
"id": "141",
"name": "Ninja Raccoon",
"active": true
},
{
"id": "135",
"name": "Spr Golf Drive",
"active": true
},
{
"id": "091",
"name": "Candy Superwin",
"active": false
}
]
}