Saksham's DevBlog

Saksham's DevBlog

Things to keep in mind for arrays in JS

May 16, 20211 min read

We know that immutability is an important factor when working in React. The thing with arrays in JS is that, they are reference values. CODE: const arr = [20, 1, 2, 100]; const getSortedArray = (array) => array.sort((a, b) => a - b); console.log("ar...

Is JS a compiled language or not?
10 things that you will learn when you make your own CSS component library
Notes | Namaste Javascript by Akshay Saini