const person = {
name: " Akinlade Tope",
age: 27,
pronouns: [ "he", "him" ],
personality: [ "Bubbly", "Fun" ],
semicolons: false,
line_endings: "crlf",
codeStyle: "Prettier",
variables: "camelCase",
trailing_comma: true,
hero: "Bill Gates",
hobbies: [ "Programming", "Swimming", "Gaming", "Touring", "Gaining Knowledge", ],
knowledge: [ "Data Analysis", "Algorithms","Web Development", "Ecmascript", "Numbers",],
projects: [ "To-do List","LeaderBoard"],
languages: [ "Ecmascript6","HTML", "CSS", ],
editors: [ "VS Code", ],
newLanguage() {
console.log("Hello, World!")
},
favGames (game) {
const bestGames = [ "FIFA", "NFS", "GTAIV", "MIDNIGHTCLUB",
"MAXPAYNE3" ]
const favorite = JSON.parse(fs.readFileSync("favoriteGame.json"))
if (bestGames.includes(game)) {
console.log("I love this game, let's play");
} else if (favorite.includes(game)) {
console.log("I can try it out")
} else {
console.log("Bleeh...Let's try aother game");
}
},
}
mckent05 / daudaandtope Goto Github PK
View Code? Open in Web Editor NEWLicense: Other