Rarely known Javascript Tips

Dhanush N - Oct 3 '20 - - Dev Community

JavaScript is a dynamic computer programming language.

It is an interpreted programming language with object-oriented capabilities.


👇👇💡Javascript Tips 💡👇👇

💡 Javascript Tip 1️⃣

The bitwise OR operator can also be used to remove any amount of digits from the end of an integer.

Alt Text

💡 Javascript Tip 2️⃣

The 𝘀𝘁𝗿𝗶𝗻𝗴𝗶𝗳𝘆() method takes two optional parameters:
👉 a replacer function, which you can use to filter the JSON that is displayed
👉 a space value

Alt Text

💡 Javascript Tip 3️⃣

There is a very simple way to empty an array in Javascript:

Alt Text

💡 Javascript Tip 4️⃣

We can await multiple async functions to finish by using Promise.all

Alt Text

💡 Javascript Tip 5️⃣

Javascript ES6 Concepts

👉 map()
👉 reduce()
👉 filter()

Interesting illustration 👇

Alt Text

💡 Javascript Tip 6️⃣

Short circuit conditionals

Alt Text

Note : Will be updating this post further

Alt Text

To get to know more technical stuff, connect with me via Twitter

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player