const user = {
user_name: "Kalin Chervenkov",
my_age_no: 17,
fav_theme: [ "dark", "radical", "high-contrast"],
fav_color: #30fff5,
myhobbies: [ "Programming", "Hiking", "Cycling", "Playing Tennis", "Gaining Knowledge", ],
knowledge: [ "β", ],
languages: [ "JavaScript", "C++", "SASS/CSS", "HTML", "SQL", ],
myeditors: [ "VS Code", "VIM", "neovim", "VS", "repl.it", ],
learnNewLanguage: function () {
console.log("Ruby, Python, Java")
},
learnNewLibraries: function () {
console.log("React Native, WA")
},
Eating: function (food) {
const good = [ "Pizza", "Pasta", "Potatoes", "Banitsa", "Vegetables", ]
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: "Kalin Chervenkov",
my_age_no: 17,
fav_theme: [ "dark", "radical", "high-contrast"],
fav_color: #30fff5,
myhobbies: [ "Programming", "Hiking", "Cycling", "Playing Tennis", "Gaining Knowledge", ],
knowledge: [ "β", ],
languages: [ "JavaScript", "C++", "SASS/CSS", "HTML", "SQL", ],
myeditors: [ "VS Code", "VIM", "neovim", "VS", "repl.it", ],
learnNewLanguage: function () {
console.log("Ruby, Python, Java")
},
learnNewLibraries: function () {
console.log("React Native, WA")
},
Eating: function (food) {
const good = [ "Pizza", "Pasta", "Potatoes", "Banitsa", "Vegetables", ]
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. :/")
}
},
}