const user = {
user_name: "Vivek Solanki",
my_age_no: 18,
_pronouns: [ "he", "him", "them", ],
fav_theme: [ "dark", "monokai", ],
fav_color: 0x0099ff,
semicolon: false,
line_ends: "crlf",
codeStyle: "prettier",
variables: "camelCase",
myhobbies: [ "programming", "chess", "reading", "gaining knowledge" ],
knowledge: [ "Black Holes", "Algorithms", "Ecmascript", "Numbers", "Tic-Tac-Toe" ],
_projects: [ "Long Live", "Codeial", "musicplayer", "trading bot", "crypto view", "cyber_movie"],
languages: [ "Python","Kotlin","Type Script", "Java Script", "C++", "Java" ],
myeditors: [ "Sublime Text", "VS Code", "vim", "neovim","android studio" ],
learnNewLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Street food", "Margherita", "Mixed Noodles", "Prawn", ]
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: "Vivek Solanki",
my_age_no: 18,
_pronouns: [ "he", "him", "them", ],
fav_theme: [ "dark", "monokai", ],
fav_color: 0x0099ff,
semicolon: false,
line_ends: "crlf",
codeStyle: "prettier",
variables: "camelCase",
myhobbies: [ "programming", "chess", "reading", "gaining knowledge" ],
knowledge: [ "Black Holes", "Algorithms", "Ecmascript", "Numbers", "Tic-Tac-Toe" ],
_projects: [ "Long Live", "Codeial", "musicplayer", "trading bot", "crypto view", "cyber_movie"],
languages: [ "Python","Kotlin","Type Script", "Java Script", "C++", "Java" ],
myeditors: [ "Sublime Text", "VS Code", "vim", "neovim","android studio" ],
learnNewLanguage: function () {
console.log("Hello, World!")
},
hereIsYourFood: function (food) {
const good = [ "Street food", "Margherita", "Mixed Noodles", "Prawn", ]
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.")
}
},
}