JavaScript Basics

How to Wait 1 Second in JavaScript?

A tutorial to learn about how to wait 1 second in JavaScript with code examples and explanations. ...

October 18th, 2022

How to do Web Push Notification on Browser using JavaScript

Web push notification on a browser using JavaScript with example script via Notification API. ...

October 3rd, 2022

AJAX Call in JavaScript with Example

A simple tutorial to learn to make AJAX call using JavaScript without jQuery or other dependencies. ...

September 27th, 2022

How to Detect Mobile Device using JavaScript

Tutorial to detect mobile device using JavaScript window.matchMedia() or navigator.userAgent media queries. ...

September 20th, 2022

How to Capture Screenshot of Page using JavaScript

Three simple solutions for capturing screenshots from a page using JavaScript built-ins, libraries and HTML5 properties. ...

September 19th, 2022

JavaScript this Keyword

JavaScript this keyword refers to logging the object and its properties in different contexts like window, document. ...

September 13th, 2022

JavaScript Copy Text to Clipboard

Tutorial with example JS scripts to copy text to clipboard. Three different methods that uses JavaScript functions with example. ...

September 9th, 2022

Get User Location from Browser with JavaScript

An example to get users' current location from browser via JavaScript using Geolocation API. Also see how to get dynamic user location. ...

September 5th, 2022

JavaScript Remove Element from Array

Different examples of how to remove first, last, and specified items from an input array using JavaScript. ...

August 29th, 2022

Remove Duplicates from Array JavaScript

A set of example code to learn how to remove duplicates from an input array using JavaScript functions and properties. ...

August 24th, 2022

↑ Back to Top