Cara membuat type data object
12345678910111213141516171819
let cv = {
firstName : "Maulana",
lastName : "Iqbhal",
age : 23,
height : 4,
fullName : function() {
return this.firstName + " " + this.lastName;
},
alamat : {
desa : "Rejeni",
rt : 01,
rw : 22
}
};
console.log(cv.firstName);
console.log(cv.fullName());
JavaScript
INFO