const user = {
name: "Uzair Ali",
age: 25,
pronouns: [ "he", "him" ],
theme: [ "dark", "monokai" ],
semicolons: false,
line_endings: "crlf",
codeStyle: "Prettier",
variables: "camelCase",
trailing_comma: true,
hero: "Steve Jobs",
hobbies: [ "Programming", "Gaming", "Guitaring", "Reading", "Gaining Knowledge", ],
knowledge: [ "Black-Holes", "Algorithms", "Ecmascript", "Numbers", "Economics", ],
projects: [ "newsweek", "perma-tnw-responsive", "new-york-clone", "ruby-exercises", ],
languages: [ "Ecmascript", "Ruby", "HTML", "CSS", ],
editors: [ "Sublime Text", "VS Code", ],
newLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Burgers", "Chicken", "Mixed Noodles", "Beef",
"Prawns" ]
const acceptable = JSON.parse(fs.readFileSync("acceptableFoods.json"))
if (good.includes(food)) {
console.log("Chomp Chomp Gulp... Yum!")
} else if (acceptable.includes(food)) {
console.log("Chew Chew Gulp.")
} else {
console.log("No, thanks.")
}
},
}
const user = {
name: "Uzair Ali",
age: 25,
pronouns: [ "he", "him" ],
theme: [ "dark", "monokai" ],
semicolons: false,
line_endings: "crlf",
codeStyle: "Prettier",
variables: "camelCase",
trailing_comma: true,
hero: "Steve Jobs",
hobbies: [ "Programming", "Gaming", "Guitaring", "Reading", "Gaining Knowledge", ],
knowledge: [ "Black-Holes", "Algorithms", "Ecmascript", "Numbers", "Economics", ],
projects: [ "newsweek", "perma-tnw-responsive", "new-york-clone", "ruby-exercises", ],
languages: [ "Ecmascript", "Ruby", "HTML", "CSS", ],
editors: [ "Sublime Text", "VS Code", ],
newLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Burgers", "Chicken", "Mixed Noodles", "Beef",
"Prawns" ]
const acceptable = JSON.parse(fs.readFileSync("acceptableFoods.json"))
if (good.includes(food)) {
console.log("Chomp Chomp Gulp... Yum!")
} else if (acceptable.includes(food)) {
console.log("Chew Chew Gulp.")
} else {
console.log("No, thanks.")
}
},
}