loading...

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
 

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

 

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.

 
 

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

 

There are a few of them

  • first class JSON support
  • Regex build into the language (you need them sometimes)
  • functions are value.
 

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

Classic DEV Post from Oct 18 '17

Writing Clean Code (Part 2)

Three more practices to write clean code and help improve code readability.

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