r/JavaScriptTips • • Aug 30 '22

JavaScript help

Good Day, I'm a junior self taught front end developer and I'm currently teaching myself JavaScript, but I haven't been able to understand it, I understood html and CSS a little easier but my mind is blocked with JavaScript, can someone please help me.

0 Upvotes

7 comments sorted by

View all comments

5

u/codewale007 Aug 30 '22

yeah, the same thing also happening to me also, I also got stuck at some of the concepts for example like right now on class and constructor . I think the main problem is that I have no one to discuss it with

1

u/HarryBolsac Sep 01 '22

Think of a class as a blueprint for objects that you can instantiate at will.

Think of a construtor the same as arguments for function, they are used for something when you instanciate a new object, usually to set properties.

Imo you should first learn a little about how oop paradigm works and it's uses, and learn some concepts like abstraction, encapsulation, polimorphism and inheritance because although it seems kinda hard to grasp, it's something that most programming languages support and imo it's pretty important stuff to know.