startit/oppgaver/uke7/pokemon/objExample.js

22 lines
492 B
JavaScript

let mariusSinLommebok = {
kort: ["Visa", "Mastercard", "Førerkort", "Kundeklubb"],
mynter: 82,
sedler: 50,
pictures: ["kattepus1.png", "kattepus2.png"],
isBroke: true,
};
// Variabler:
let pikachuName = "Pikachu";
let pikachuHealth = 45;
let pikachuImage = "/Images/pikachu.png";
let pikachuSound = "/Audio/pikachu.mp3";
let pikachuLevel = 8;
// Objekt:
let pikachu = {
health: 45,
image: "/Images/pikachu.png",
sound: "/Audio/pikachu.mp3",
level: 8,
};