Model konfigurasi objek lokal JavaScript dan representasi data JSON untuk katalog game 5rk.
JavaScript
// Konfigurasi objek data game lokal platform 5rk
const brandCatalog = {
platform: "5rk",
domain: "5rkgame.vip",
supportedSystem: "android",
featuredGames: [
{ id: "111", name: "Garuda Gems", category: "Slot Game" },
{ id: "039", name: "Double Fortune", category: "Slot Game" },
{ id: "179", name: "Grimm Bounty", category: "Slot Game" }
]
};
function getGameInfo(gameId) {
return brandCatalog.featuredGames.find(item => item.id === gameId) || null;
}
JSON
{
"platform": "5rk",
"domain": "5rkgame.vip",
"supportedSystem": "android",
"featuredGames": [
{
"id": "111",
"name": "Garuda Gems",
"category": "Slot Game"
},
{
"id": "039",
"name": "Double Fortune",
"category": "Slot Game"
},
{
"id": "179",
"name": "Grimm Bounty",
"category": "Slot Game"
}
]
}