JavaScript
Text shortner function with js that end with ‘…’
You want a JavaScript function that shortens text and adds an ellipsis ("...") to the end. Here's a simple function that does that:
...
Question: how to know the count of every character in string
Some times your interviewer ask you that count the every character in the string
const str = "how are you";
const objt = {}
for(let ...
JavaScript One-Liners to Use in Every Project
"Disclaimer: This article draws inspiration from and aims to provide a fresh perspective on js. While we have used information from a...
Make your website/app memorable with tiny js interaction
JS code for changing the title of a webpage when the user interacts with the page or switching away from it
window.addEventListe...
Download images from browser console with js
Download all images in console with this you can download the images that you can not download via save as option
1- First copy all ...
Download all images from the page
If you want to download all of the images on a webpage in one go, you can use the following few lines of JavaScript code to do it:
$...