Job Search Update — JavaScript Objects

const mike = {fullName: "Mike Shah", sex: "male", age: 35, married: true, hobbies:["skating", "music", "scuba"}
console.log(mike.age)>> 35
const mike = {
fullName: "Mike Shah",
sex: "male",
age: 35,
married: true,
hobbies:["skating", "music", "scuba"},
greeting: function() {
return "hello," + this.fullName
}
}
let hello = mike.greeting;
function Person(fullName, sex, age, married, hobbies) {
this.fullName = fullName;
this.sex = sex;
this.age = age;
this.married = married;
this.hobbies = hobbies;
}
const violet = new Person("Violet Shah", "female", 5, false, ["princesses", "playing", "eating"]);const kalya = new Person("Kalya Shah", "female", 36, true, ["biking", "hiking", "concerts"]);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store