Mandatory JavaScript Knowledge for Coding Interview

less than 1 minute read

Are you attempting coding interview challenges in Javascript? Then make sure you learn below mandatory JavaScriipt apis and utilities.

Math Library

Math.floor Math.round

Used in Binary Search algorithm


Array Slice

Used in Merge sort algorithm.

Array Sort

Initialize 2D array


JavaScript Map

Difference between i++ and ++i

So basically ++i returns the value after it is incremented, while i++ return the value before it is incremented.

Javascript Bitwise operator

Right Shift x»y

Moving bit/s towards the right side in binary number.

4>>2 = 16

x>>y means x/2^y divide x by 2 to the power of y.

Left Shift x«y

Moving bit/s towards the left side in binary number.

4<<2 = 0

x<<y means x*2^y multiply x by 2 to the power of y.

Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.

💖 Say 👋 to me!
Rupesh Tiwari
Founder of Fullstack Master