Javascript Small recipes to improve
Compilation of tips and recipes to increase your Javascript skills
Those who follow me on Linkedin could have seen that every Wednesday I publish a small specific recipe with Javascript where some trick or advice to improve with this language.
Since you have been few, who have written to compile all of them in a prepared article that they will read next now that they are a very large number to make sense?
I hope you like it and that it helps you to improve, because that is what it is about. So, as always, let’s do it!
1. Array destructuring
In this recipe I review how we can use the syntax “array destructuring” to extract elements from an array or add new ones to it.

2. DOM manipulation through Javascript
Now that Javascript has natively incorporated many of those functions for which it was previously more convenient to resort to JQuery, I have found it interesting to collect some of them:

3. Useful methods of the console object
We are so used to debugging using console.log
that many times we forget the other methods provided by this object. In this recipe you will find some more than sure you find useful on occasion.

4. Fetch
Thanks to the native JavaScript fetch API it is now very easy to make asynchronous requests (XMLHttpRequest) without resorting to third-party libraries such as axios.

5. Find, some, every
Now that functional programming is here to stay, how about reviewing the find
, some
, every
functions that allow us to query an array without resorting to loops?

6. Imperative programming vs. declarative programming
And speaking of imperative and declarative programming. Do you know their differences?

7. Promises
At this point I don’t think I’m going to discover to anyone what a Promise is. However, Javascript has incorporated some quite useful methods to this type of object that I found interesting to collect.

8. Reduce
Another recipe about declarative programming, this time to show you some of the things that can be achieved using the reduce function. Interesting, right?

Final thoughts
As you can see, Javascript has many syntactic tricks to make the experience of developing in this language much more pleasant. That’s why I always answer who asks me about which library or framework to learn:
Do you know Javascript well?
I think that knowing the language is essential before going to work on a layer above, hence I prepare these mini recipes every Wednesday to reinforce my knowledge.
Remember that if you also want to deepen you have the fantastic free online book “You don’t know Javascript:”
Do you want to read more articles like this?
If you liked this article I encourage you to subscribe to the newsletter that I send every Sunday with similar publications to this and more recommended content: 👇👇👇