Tag: Javascript

Recent Post

How to create a strongly random password generator

Create a cryptographically strong random password generator.

Check if a number is odd or even in JavaScript

Create a utility function to perform a check of whether a number is odd or even.

How to remove the last character from a string in JavaScript

Use the negative indexing of the slice method to remove the last character from a string.

Make fetch GET, POST, PUT and DELETE requests in a single line

Reduce the amount of code needed to make HTTP requests using fetch.

Truthy and falsy values in JavaScript

There are seven values in JavaScript that convert to Boolean false in a logical statement

Make browser go back to previous page using JavaScript

How to go backwards and forwards in a user's browser history.

Adding keyboard input events in JavaScript

How to handle keyboard input events in JavaScript.

Using querySelector and querySelectorAll

Select elements from the DOM using the full power of CSS selector syntax.

How to copy text to the clipboard (and read it) in JavaScript

How to copy text content to a user's clipboard.

Load another JavaScript file from within a JavaScript file

Dynamically load another JavaScript file from within a JavaScript file.