Some of these tricks may seem like standard operating fair but remember there was a time you were not aware of some of these javascript features. These are features that when discovered made our lives easier and our love of javascript grow fonder.

1 — Object Destructuring

Object destructuring gives us an easy way to parse properties out of a large object into its own stand alone variable. Here is a video on the subject.

https://www.youtube.com/watch?v=6M5FzuqHpcc

2 — The Ternary Operator

https://www.youtube.com/watch?v=L9TSy0yu35U

3 React: Passing components as props

Here is a video on the subject

https://www.youtube.com/watch?v=xp6OR0ghJ2I

4 Anonymous Functions

const helloWorld = () => console.log(‘hello world’);

5 filter array method

//Find all even items in an array

const newArray = oldArray.filter(value => return value%2 == 0)

Alex Merced is a Full Stack Developer, learn more about his work at AlexMercedCoder.com

Alex Merced is a Full Stack Developer, learn more about his work at AlexMercedCoder.com