24.7 C
Saturday, October 23, 2021
Home Quick Tips

Quick Tips

NPM package affects your website performance?

Did you know each npm package you installed is causing your website loading time? You want to know how much it effect? so here is a...

useful git commands

A list of my commonly used Git commands git init  => Initialize a local Git repository git clone =>  Create a local copy of a remote...

Quickest way to sort array in Javascript

Single Dimensional Array sort   sort() The sort() method sorts the items of an array in descending or ascending order. Also, function sort the value as a...

How to Download WhatsApp Status?

Hello all today in this blog i show you how to download WhatsApp status in simple way so here we go first of all you need...
css selectors

CSS Selectors you probably don’t know⁣⁣

did you know that you can select the first letter with CSS? p:first-letter {⁣⁣ color:red; ⁣⁣}⁣⁣⁣⁣ or the first line of text:⁣⁣ p:first-line {⁣⁣...
Remove Duplicate Value From Array

Shortest Way To Remove Array Duplicates in ES6

1. Set Set is a introduced in ES6. Because Set only lets you store unique values. When you pass in an array, it will remove...
copy to clipboard javascript

Did you know that you can copy text to the system clipboard with Javascript?⁣

Did you know that you can copy text to the system clipboard with Javascript?⁣ ⁣ Sometimes you want the user to copy something. A common use...

Did you know that try and catch also had a finally statement?

the code that is in finally will be executed in any case even if it throws an error Example try { const employee fetch('https://www.example.com/getEmployee'); } catch { ...

Did you know that you can make your phone vibrate with javascript?⁣

There is a Vibration API. It is pretty easy to use!⁣ ⁣ You can use it on every device that has a vibration motor in them....

JavaScript array looping

In this article, I show you the few methods for looping over arrays in Javascript. We’ll start with the classical ones and move towards...