Hello World !!!
There are numerous scenarios when we want to know the time taken by a function in JS but most of the time it is related to finding the one line of code which is taking ages to execute.
Here is the most common way of finding the…
CSS is an ART, which we can learn only by practice and there is no definite time to master it. However there are few specific CSS which I think everyone should know. These CSS rules may give you a path, which may lead you to mastery level.
Mutable = Can change
Immutable= Can’t be changed
So, first let’s understand why this copy thing…
TLDR; If your
array is of single level and contains only primitive values then you may use these methods without worry.
object.assign() only does a shallow copy. Means if your object is nested. Even if your object has two levels. Object.assign won’t work.
Consider below code:
Generally, we don’t use these functions in our day to day front-end development. The most common use case for these functions are when either we are doing some hardcore JS work, writing a library or working on a library/framework which needs one of the function. Example of such scenarios is…
this referring to.
In this article I’ll try to explain as many as scenarios which I came across…