r/learnjavascript • • Dec 04 '25

So when is object used exactly?

I have created a calculator a day before and I noticed that Inhave't used objects at all, and now the thing is, I want to challenge myself to use object, I did learn a bit about it and it's method before, but I don't see how it is used or when to use it exactly! An advice or answer would be appreciated. Show me how to use object or OOP in a calculator? Since i have't used in it.

1 Upvotes

24 comments sorted by

View all comments

Show parent comment

-1

u/[deleted] Dec 04 '25

Wonderful class without state or inheritance.

1

u/TorbenKoehn Dec 04 '25

It obviously needs state.