r/javascript • • 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?

0 Upvotes

8 comments sorted by

View all comments

4

u/azangru Jun 11 '23 edited Jun 11 '23

Am I missing something here?

No, you aren't missing anything. Javascript is quite simple; and rather similar to python, ruby, php, or perl. These are all scripting languages of the C family. Javascript also has Scheme — and therefore Lisp — in its pedigree, which makes it well-suited for handling functions as first-class citizens. Much more convenient than python, to my taste.