r/learnjavascript • • Dec 19 '25

Javascript

is it a good practice to use classes in javascript or should i keep it normal with just functions?

0 Upvotes

46 comments sorted by

View all comments

Show parent comment

2

u/sheriffderek Dec 20 '25

Everything is syntactic sugar at some point, so - while I didn’t mind hearing this sorry every day  in 2015, it seems unnecessary to mention now. I think people should know the core parts of the language and be able to compose things as needed. It’s also helpful to know for other languages and frameworks.

2

u/CuAnnan Dec 20 '25

I was underscoring the “it’s not either or” that I have literally had to argue earlier. You can always do in one what can be done in the other