DEV Community

Rupesh Tiwari
Rupesh Tiwari

Posted on • Originally published at rupeshtiwari.com on

Mandatory JavaScript Knowledge for Coding Interview

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

Math.abs

Array related

Array Slice

Used in Merge sort algorithm.

Array Sort

Initialize 2D array

Map

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

Email: rupesh.tiwari.info@gmail.com

Website: RupeshTiwari.com

Image of Quadratic

Chat with your data and get insights in seconds

Leverage native spreadsheet AI to write Python, SQL, and JavaScript for quick insights and complex analysis.

Try Quadratic free

Top comments (0)

Image of PulumiUP 2025

Transform Your Cloud Infrastructure

Join PulumiUP 2025 on May 6 for Expert Insights & Demos.

Register Now

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay