[JS] Generate a random number between Min and Max and exclude a specific number

February 13, 2022 A Goodman

Creating a random number is popular stuff in Javascript that has many use cases. This article shows you how to generate a random number between a minimum number (inclusive) and a maximum number (exclusive) and the…

Simple Promise chain example in modern Javascript (ES6+)

February 13, 2022 A Goodman

The simple and easy-to-understand example below shows you how to use the Promise chain in modern Javascript (ES6, ES7, ES8, or newer). The code: Output: Further reading: Calculate Variance and Standard Deviation in Javascript Javascript: Capitalize…

Javascript: Get current date time in yyyy/MM/dd HH:mm:ss format

February 13, 2022 A Goodman

This concise article shows you how to get the current date and time in Javascript in yyyy/MM/dd HH:mm:ss format. We’ll write code from scratch without using any third-party libraries. In the example below, we will create…

1 2 3