JavaScript GETTERS & SETTERS are awesome!!! 📐

1 year ago
13

// getter = special method that makes a property readable
// setter = special method that makes a property writeable

// validate and modify a value when reading/writing a property

00:00:00 intro
00:01:42 example 1 setters
00:04:10 example 1 getters
00:07:16 example 2
00:08:31 example 2 setters
00:11:15 example 2 getters
00:12:48 conclusion

Loading comments...