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.
a. Inline CSS — In this type, we write our css against
style attribute of an HTML element, different rules are separated by a
There were many incidents happened with me, where I saw people saying that HTML is very easy and you may learn it in one single day. Hmmmm…. so yes you can learn writing HTML in one single day but it will take ages to understand the each and every concepts of HTML.
In this article I’ll explain few concepts that I learned too late, and you should know these concepts so that you can write better web apps.
I saw everyone saying that in HTML there are two types of elements. (months back I was one them) inline and block…
Yes !!! you read it correct. We have two variants of
blank available in html for anchor ⚓️ tag.
Let’s understand first how
_blank works. If we want to open a url in new tab always, whenever it is clicked by the user then we add
target="_blank" in our anchor tag just like this:
Mutable = Can change
Immutable= Can’t be changed
But wait, consider following code:
Aren’t we changing the
b ? No. we aren’t. In…
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 ReactJS. Where in Class component we use
bind to bind the reference of
this in class instance.
So, let’s understand what is purpose these function serve?
The job of all three of the functions
call bind and applyis same. And that is to pass on the reference of
this referring to.
In this article I’ll try to explain as many as scenarios which I came across which uses the
this . And may be one of the scenario may help you in understanding to concept of
this more clearly.
So first let’s see what
this refers to? 🤔
The nature of this is fluid. The value of
thischanges based on the
contextin which the…
Extension make a developer life easy by providing some quick solution for a problem. Here are my top 7 VSCode extensions that will surely make your life easy.