const user = {
user_name: "Vishal Singh",
my_age_no: 19,
_pronouns: [ "he", "him", ],
fav_theme: [ "dark", "monokai", ],
fav_color: #000000,
semicolon: false,
codeStyle: "prettier",
variables: "camelCase",
myhobbies: [ "programming", "sleeping", "gaining knowledge", ],
languages: [ "Html", "Css", "Js", "ReactJs", "Redux", "NodeJs", "C++", "Python", "C", ],
myeditors: [ "Sublime Text", "VS Code", ],
thank_you: "John Smilga",
learnNewLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Panner Butter Masala", "Chicken", "Mixed Noodles", "Good Fish",
"Biriyani", ]
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 = {
user_name: "Vishal Singh",
my_age_no: 19,
_pronouns: [ "he", "him", ],
fav_theme: [ "dark", "monokai", ],
fav_color: #000000,
semicolon: false,
codeStyle: "prettier",
variables: "camelCase",
myhobbies: [ "programming", "sleeping", "gaining knowledge", ],
languages: [ "Html", "Css", "Js", "ReactJs", "Redux", "NodeJs", "C++", "Python", "C", ],
myeditors: [ "Sublime Text", "VS Code", ],
thank_you: "John Smilga",
learnNewLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Panner Butter Masala", "Chicken", "Mixed Noodles", "Good Fish",
"Biriyani", ]
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.")
}
},
}