5 Ninja Tips for writing JavaScript as a Pro

1. Stop checking if something is greater than 0.

Noob
Ninja

2. Stop using single if condition, prefer to write it in one single line

Noob
Ninja

3. Stop using if to conditionally add keys in object, prefer de-structuring

Noob
Ninja

4. Stop using too many conditions in if , use includes instead

Noob
Ninja

5. Prefer using boolean result wherever possible using !!

Noob
Ninja

--

--

--

A passionate iOS Developer since 2014.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Node.js Community was amazing in 2017! Here’s the proof:

Tron Smart Contract With Blockchain Technology-NEXT TRON

19 Powerful React Libraries and Frameworks to Use Right Now

JavaScript 30 — Day 7 - Array Cardio 2

Object.assign()

Codeceptjs + Puppeteer. How to catch too fast requests

What WordPress needs from a JavaScript framework

If toi interest by the Nft you can contact me.☺️☺️👾👾👾

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
राहुल मिश्रा

राहुल मिश्रा

A passionate iOS Developer since 2014.

More from Medium

ES6: Inheritance

Javascript Closures: Let’s dive in.

Some Useful Array methods in Javascript

Javascript Productivity with Lodash