---
title: "iyiola osuagwu (@iyiolaosuagwu661) | Hashnode"
description: "Mobile Developer. Read the latest articles by iyiola osuagwu on Hashnode."
url: "https://hashnode.com/@iyiolaosuagwu661"
---

@iyiolaosuagwu661

# iyiola osuagwu

@iyiolaosuagwu661 · Joined July 2019

Mobile Developer

[Website](https://www.iyiolaosuagwu.dev/)

## Comments

[Getters are used to access the value of an object's property, while functions are used to perform a specific action or computation. Advantages of using getters: Encapsulation: Getters allow you to hide the implementation details of a class from the user, making it easier to modify the underlying implementation without affecting the code that uses the class. Consistency: Getters provide a consistent interface for accessing the properties of an object, regardless of the implementation details. Computed properties: Getters allow you to compute a value based on the state of an object, which can be useful for creating computed properties.](https://hashnode.com/posts/getter-and-setter-in-javascript/63ee8bba4353ef53777d6215/comment/63eea6153c9c765be7a45e32#reply-6422124666aa3f8316eb2423)

Reply · Article · Mar 27, 2023 · [Getter and Setter in JavaScript](https://hashnode.com/posts/getter-and-setter-in-javascript/63ee8bba4353ef53777d6215)
