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

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay