I am also having kind of the same problem with JS.
Did you tried W3 Schools examples?
They are kind of working for me and I also follow this beginner JS challenges:
Set a time to do it once a day.
What seems to be the problem?? In terms of programming (algorithms wise) there shouldn’t be much of a different from c. Programming languages all share common structure like variables, loops, arrays, and such. If you know it already, learning the syntax to do the exact same job should be easier.
Biggest difference is that there is no real data type rules to follow like int, double, float, etc. Everything just seems to be able to drop inside a variable.
Back to the question, what exactly are you having problems with?
I was fine with the basics but I got stuck in the oops part. The concepts are same but the whole thing is different. For example the use of classes as function and concept of constructors and functions are changed. I specifically froze at the condensing an array part.
The whole idea of using function as class definition is extremely bad in my opinion. But it is what it is.
Hopefully somewhere down the line they would implement actual class design like all the other oop language. Until then were stuck reading nested functions with curly braces all over the place. Lol
It takes some time to get used to, and a lot of research.
Hmm thanks for the reply.
That will build the foundation for proceeding to step 2 where…
…you will read this. Pay attention to details and make notes. Kyle Simpson’s books seem short but the concentration of information is enormous.
Don’t forget about learning about what ES6 has to offer.
Can you recommend videos? They are a lot out there.
Hope That helps
JS is object-oriented, but it does not actually use classes at its core. This makes it very different from every other object-oriented language you will typically run into, including c++/java/c#. If you are willing to do some reading, try YDKJ series of books. The third in the series is most relevant, but you may also want to read about scope and closures as well.
It wouldn’t be the solution to every programming problem you have, yet the ECMA standards it’s based off are improving and making it into a better language so in the future it may behave more like those two other languages.