In this article, we will take a look at JavaScript render-blocking. We recognize 3 types of render-blocking, as stated in the title of this blog post, but first, let’s take a look at what (browser) rendering is.
In this article, we will take a look at JavaScript render-blocking. We recognize 3 types of render-blocking, as stated in the title of this blog post, but first, let’s take a look at what (browser) rendering is.
Which is better – getElementById or querySelector? Well, better is a very subjective answer. Both getElementById and querySelector are an element-grabbing method from the JavaScript Document Object Model (DOM), so with each method, you can pick up whatever element you want to manipulate with, of course depending on the circumstances. The advantage at least is that you don’t have to choose which one you’ll use – both, GetElementById and querySelector method have their own use cases and you can choose methods interchangeably. However, the question remains – why use one over the other? So, let’s dive in.
In this article, you are going to learn the difference between arrow functions vs traditional (regular) functions in JavaScript through a few examples – we are going to browse through differences and similarities and learn when to use each.
…
In JavaScript, null and undefined may look the same, but they are not. In this article, you will learn the differences and similarities between null and undefined in JavaScript, and when you should use each.
…
In this article, you are going to learn more about JavaScript functions and methods. In short – a function can live on its own, it does not need an object, but a method is a function connected with an object property, but let’s take a look and see what are the similarities and differences between functions vs. methods in JavaScript.
…
In this article, you’re going to learn the difference between JSON and JavaScript object.
…
Should I use single (‘) or double (“) quotes when working in JavaScript? That’s the question now.
'abc' === "abc" // true
In this article, you’re going to learn when to use const in JavaScript, what is a constant (const), and how it’s different from an “ordinary” variable (let).
…
Semicolons are optional in JavaScript, but sometimes they’re not. Wait, what? Are they optional or not?
…
In this article, we are going to present how to clone an object in Javascript. There are actually at least four ways to copy an object and they differ from each other in a few ways. You can use:
So, take a look at each and see when it’s best to use a specific method.
…