Tag: Math()

Recent Post

The right way to generate a random number in JavaScript

In JavaScript, you can generate a weakly random number quickly or a strongly random number slowly.

Create a unique ID in JavaScript

Create a unique ID to identify a user or session with an embedded creation timestamp.

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.

A look back at ES2016

ES7 introduced a new exponentiation operators and .includes() array method