r/javascript • u/SkyTemple77 • Jun 11 '23
AskJS [AskJS] Is JavaScript actually incredibly simple?
Background: I struggled to learn JS for years, mostly because I found the syntax strangely burdensome = () => {} coming from Python ():
But now I have been using chatGPT to program frontend and the more I have GPT generate the reactjs for me, the more repetitive and simple I am finding it.
So I started to gain some confidence and today I searched on Amazon for a cheat sheet (I was actually looking for a css cheat sheet first and found one that is like 4 pages long.)
The only JS cheat sheet I could find is one page and really just has some basic info. Which felt like it was starting to confirm to me that once you get past the Ålien syntax, JS is actually pretty simple.
Am I missing something here?
6
u/pussyweedacidsatan Jun 11 '23
React is not Javascript. And the answer is no, Javascript is not simple. It is rather so complex that you can do quite a bit with it with very limited understanding of the language and ecosystem. This is exactly your case. Now with AI it probably seems trivial. Think about writing a reactive framework for the DOM in vanilla JS to understand how deep this goes.