Quartz sync: May 6, 2024, 10:40 PM

This commit is contained in:
Ryan Kes 2024-05-06 22:40:05 +02:00
commit 4ef8371441
635 changed files with 22281 additions and 6 deletions

View file

@ -0,0 +1,21 @@
---
id: 94a1d579-bd29-42f0-a6c6-2aa0700703d4
title: JavaScript object getters & setters
---
# Example
``` javascript
const obj = {
get foo() {
console.log('GET foo');
return 123;
},
set bar(value) {
console.log('SET bar to '+value);
}
};
obj.foo
obj.bar = 'tralala'
```