Shubham Vora has Published 962 Articles

Smart / self-overwriting / lazy getters in javaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 10:37:53

415 Views

In this tutorial, let us discuss the smart, self-overwriting, or lazy-getters in JavaScript. A getter binds the property of an object to a function, but the getter will not calculate the property value until we access it. The getter helps when we need to get some dynamic value without an ... Read More

Set whether the table border should be collapsed into a single border or not with JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 10:35:38

369 Views

In this tutorial, let us look at how to set whether the table border should collapse into a single table border or not with JavaScript. We can use the borderCollapse property in JavaScript to accomplish this. Let us look into this in brief. Using the Style borderCollapse Property The borderCollapse ... Read More

Set whether the flexible items should wrap or not with JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 10:33:40

88 Views

In this tutorial, let us look at the way to set whether the flexible items should wrap or not with JavaScript. We can use the flex-wrap property in JavaScript to set the item wrap value. Let us look into this in brief. Using the Style flex-wrap Property The flex-wrap property ... Read More

Set how the item will shrink relative to the rest with JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 10:30:43

199 Views

In this tutorial, let us look at the way to set how much the item will shrink relative to the rest of the elements in JavaScript. To set item shrink relative to the rest of the elements, we can utilize JavaScript's flexShrink property. Let's take a quick look at this. ... Read More

How to work with document.links in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 10:26:59

681 Views

In this tutorial, let us discuss how to work with the document's link in JavaScript. The document link property is a read-only DOM level 1 feature that returns all the links. The links property gives all the anchor elements and area tags with a href attribute. Working with document.links properties ... Read More

What are different ways of defining functions in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 09:27:24

701 Views

In this tutorial, we will learn the different ways of defining functions in JavaScript. In programming, writing the same code again and again is not a great idea. It will increase the length and decrease the readability with more effort required for the program. The functions are there in the ... Read More

Regular expression to match numbers only in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 09:22:47

4K+ Views

In this tutorial, we will learn regular expressions to match numbers only in JavaScript. Data is a core element in every webpage. We have to validate it as per the requirements. We often deal with the data and require correct input from the user. For example, the user can not ... Read More

Is there a Boolean Typed Array in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 09:19:41

204 Views

In this tutorial, we will learn if there is a Boolean Typed Array in JavaScript. Typed Arrays are the objects same as arrays by using we can read or write raw binary data. It is useful to carry advanced information that contains lots of data like audio or videos fast ... Read More

How to work with document.head in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 09:14:52

1K+ Views

In this tutorial, let us discuss how to work with the document's head in JavaScript. The document head property is a dom level 3 read-only feature. The document's head property returns all the head tags in the document. HTML adds an empty head tag in case it is not present. ... Read More

How to work with document.anchors in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Nov-2022 09:12:14

553 Views

In this tutorial, let us discuss how to work with the document's anchor in JavaScript. Relevant web technologies no longer recommend this property. Some browsers still recommend it for compatibility reasons. The document anchor property is a read-only feature that returns all the anchor tags. The anchor tag represents the ... Read More

Advertisements