|
|
|
|
|
by yashthakur
2959 days ago
|
|
You can use them to call some functions when an object property is called or set. P.S. Just like Database triggers ;). You can use them conditionally to manipulate data before fetch or before storing.
For example: you want to store the username when a person registers using the email id like userzyx@gmail.com then you can use it to generate username from it by truncating the later part and generate unique username which will be "userzyx" here. Just open up your brains and see where further it can be used and possibilities are just unlimited. |
|