In JavaScript, Set is a collection that lets you store only unique values. This means any duplicated values are removed.
Miscellaneous
How to loop through arrays and array-like objects in JavaScript
Here is how to loop through arrays and array-like objects using JavaScript.
How to Get the Query String in JavaScript
When you’re working with JavaScript, sometimes you need to access query string parameters in your script.
Check if an Object Is Empty
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.
Strip HTML from a given text
Here are 2 ways to strip HTML code from a given text.
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.
Show or hide an element
Quick tip on how to show or hide an element with JavaScript
Return the last element in an array
Use Array.prototype.length – 1 to compute the index of the last element of the given array and return it, otherwise return undefined.
Copy text to the clipboard
Assume that we want to copy a given text to the clipboard. Here’s how.
Confirm Yes or No With JavaScript
How to display a confirm dialog box using JavaScript. The confirm dialog box allows you to perform actions based on the user input.