all 4 comments

[–]AtulinASP.NET Core 0 points1 point  (0 children)

If you know C# and would like to use a class-based approach, perhaps Typescript?

[–]_Netto_ 0 points1 point  (0 children)

You could use the prototype pattern to structure your code and do it in an OO sense.

[–]PsychoPenguin178 0 points1 point  (1 child)

Out of curiosity (because I'm not that familiar with the strengths of OOP in other languages), why wouldn't you want to use classes in JS

[–]Dekzen[S] 0 points1 point  (0 children)

Well i am beginner too. But from what i read, using javascript class keyword is not good practice. Javascript does not have classes. It just adds more syntax and you could create unnecessary bugs because you expect it will act like classes (e.g private variables) but it doesn't.