j
Size: a a a
j
XM
j
S
S
S
XM
const person = {А чего кстати короткая запись функций в объекте не работает?
firstName: "John",
lastName : "Doe",
id : 5566,
fullName : () => return this.firstName + " " + this.lastName
}
console.log(person.fullName())
S
j
S
j
XM
j
const obj = {
method (args) {
// Something
}
}
S
XM
const person = {
firstName: "John",
lastName : "Doe",
id : 5566,
fullName() {this.firstName + " " + this.lastName}
}
console.log(person.fullName())
XM
j
XM
XM
XM