Look at this script:
var human =
{
firstName: 'Saeed',
lastName: 'Neamati',
get fullName() {
return this.firstName + ' ' + this.lastName;
}
}
I don't know what get
means in this context.
It identifies an object property that's returned when the property is read.
See https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With