10xDEVBLOG

Collection

JavaScript

innerHTML vs innerText vs textContent

Here’s a breakdown of innerHTML, innerText, and textContent in JavaScript: innerHTML: Includes HTML: It returns or sets the HTML content of an element, including all tags and formatting. Example: element.innerHTML...

Featured in JavaScript

"Explore the latest insights and deep dives curated specifically for this category."

January 29, 2024 Team
October 02, 2022

JavaScript Blobs and object URLs

In this article, we’ll learn about blobs and object URLs in JavaScript. It’s possible that you’ll want to use JavaScript to store data that was generated by a program in...

October 02, 2022

How to download a file in JavaScript

In this article, we’ll see how to download files in JavaScript. We have many ways to download a file in JavaScript. Developers can make use of the anchor’s download attribute...

September 20, 2022

How to add days to dates in JavaScript

We can add days to dates in JavaScript as follows: Call the JavaScript’ getDate() method to obtain the day of the month for the date. Call the JavaScript’ setDate() method,...

September 20, 2022

How to get current time zone in JavaScript

You can get your time zone using JavaScript by using the Intl.DateTimeFormat object which is available in all modern browsers and returns the language-specific date and time formatting methods. Here...

Previous Page 1 of 2 Next