Referensi skema objek lokal untuk pengenalan katalog game digital.
JavaScript
// Konfigurasi objek data lokal game mc889
const mc889Catalog = {
platform: "mc889",
country: "id",
defaultLanguage: "Bahasa Indonesia",
featuredGames: [
{ id: "126", name: "Diner Delights", category: "Slot" },
{ id: "092", name: "Wild Bandito", category: "Slot" },
{ id: "010", name: "Medusa", category: "Slot" }
]
};
function getGameInfo(gameId) {
return mc889Catalog.featuredGames.find(g => g.id === gameId) || null;
}
// Contoh penggunaan lokal
const selected = getGameInfo("126");
console.log("Game terpilih:", selected ? selected.name : "Tidak ditemukan");
JSON
{
"platform": "mc889",
"country": "id",
"defaultLanguage": "Bahasa Indonesia",
"featuredGames": [
{
"id": "126",
"name": "Diner Delights",
"category": "Slot"
},
{
"id": "092",
"name": "Wild Bandito",
"category": "Slot"
},
{
"id": "010",
"name": "Medusa",
"category": "Slot"
}
]
}