ere are some different methods that you could use to check if an object is empty in modern browsers that support the ES5 edition of JavaScript.
JavaScript Variables Explained
Variables are named values and can store any type of JavaScript value.
Strip HTML from a given text
Here are 2 ways to strip HTML code from a given text.
Add, remove, toggle, and check for the presence of a class
Here are some handy, simple ways to manipulate CSS classes.
Remove a Character From a String in JavaScript
How can you remove a character from a string in JavaScript? Here are a few different ways to do this.
Check if the given date is a weekend
Use Date.prototype.getDay() to check weekend by using a modulo operator (%).
JavaScript Operators Explained
Operators are the symbols between values that allow different operations like addition, subtraction, multiplication, and more.
Show or hide an element
Quick tip on how to show or hide an element with JavaScript
Find all matching elements on a page with document.querySelectorAll()
Find all matching elements on a page. You can use any valid CSS selector.
Redirection: How to Change the URL in JavaScript
We’ll go through the different built-in methods provided by JavaScript to implement URL redirection. In fact, JavaScript provides the location object, a part of the window object, which allows you to perform different URL-related operations.