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 / bookstore_react Goto Github PK
View Code? Open in Web Editor NEWA single-page app that allows users store some of their favorite books. It lets users add their favorite books to the list and post them to an API. It also fetches the books for the API.this project was built using Javascript, React-redux