# Javascript Object

**URL:** <https://forum.codewithmosh.com/t/javascript-object/1474>\
**Category:** JavaScript\
**Created:** [December 27, 2020, 9:13am UTC](https://forum.codewithmosh.com/t/javascript-object/1474 "2020-12-27T09:13:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wirkoo](https://avatars.discourse-cdn.com/v4/letter/w/5fc32e/32.png) [@Wirkoo](https://forum.codewithmosh.com/u/Wirkoo)\
**Post date:** [December 27, 2020, 9:13am UTC](https://forum.codewithmosh.com/t/javascript-object/1474/1 "2020-12-27T09:13:35Z")

</div>

Hi there ! I have a question  
Lets create an object  
const circle = {  
radius: 1  
};

While declaring and object with ‘const’, we don’t use let or const with object propoerties so what is with the property ? i.e. const radius or let radius ?

There is one more question.  
After declaring an object with Constructor Function, how can we assign or remove a property as constructor function include this keyword. How can we assign or remove outside constructor function

c

---

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [December 27, 2020, 9:51am UTC](https://forum.codewithmosh.com/t/javascript-object/1474/2 "2020-12-27T09:51:45Z")

</div>

> [@Wirkoo](#):
>
> i.e. const radius or let radius ?

You can change the properties after object creation.

> [@Wirkoo](#):
>
> How can we assign or remove outside constructor function

In a constructor function you need `this` to reference the object just created. As soon as you have a reference to the object

```js
const myCircle = new Circle(1);

```

You can use that instead to modify `myCircle.radius = 5;` add `myCircle.color = "red";` or delete `remove myCircle.color;` a property (although I don’t think it’s a good idea to add or remove properties in OOP).
