What features do you like about JavaScript?

github logo ・1 min read

What things about JavaScript do you like? What features do you enjoy using? They don't need to be exclusive to JavaScript, just stuff you like about the language.

I really like being able to pass functions as parameters to other functions. It's really neat and it adds a lot of flexibility.

What about you?

twitter logo DISCUSS (7)
markdown guide
 

I'm somewhat fond of how function definitions and function expressions look identical. You don't need to remember some different syntax just to insert a small function somewhere.

I also really like that the language doesn't treat double quoted and single quoted strings differently. A lot of languages don't care either way these days, but it's still nice to not need to constantly remember to use double quotes like in C or Elixir.

 

Bonus track: stuff I'd like to see added to Javascript

 
 

Lambda is nice, I really like destructuring.
It has simplified so much code for me the last few years. :)

 

Destructuring, Higher Order Functions, Spread Operator, Arrow Functions, async-await for asynchronous programming.

 

There are a few of them

  • first class JSON support
  • Regex build into the language (you need them sometimes)
  • functions are value.
Classic DEV Post from Feb 26

You're Not An Impostor

Hey you. Yes, you, the reader. You clicked on this article because you have som...

SavagePixie profile image
Always learning new things. I love web development and coding in general.

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️