Pages about JavaScript – page 2 of 3

JavaScript countdown using localStorage

Using localStorage, it's possible to implement a countdown clock in JavaScript that survives a reboot of the user's computer. However, it's not possible to know when the user clears their localStorage contents.

Formatting a truncated float in JavaScript

By combining multiplication, division, and Math.floor(), it is possible to truncate a floating point number to a chosen number of decimals in JavaScript. Here, I explain every step of the way, and show how it's done in a one-liner.

First two parts Artsy published

I'm remaking the second part of the iconic 1993 Amige demo Sanity by Arte.

Phenomenal & Enigmatic, part 4 of 4

I'm drawing 2D and 3D animations on a rotating 3D cube using JavaScript and Canvas. Inspired by the 1991 Amiga demo Enigma by Phenomena.

First part of Artsy, now in beta

I'm starting on a JavaScript Canvas demo, heavily inspired by the 1993 Amiga demo Arte by Sanity.

Phenomenal & Enigmatic, part 3 of 4

I'm drawing a glassy, glossy logotype using JavaScript and Canvas. Inspired by the 1991 Amiga demo Enigma by Phenomena.

Phenomenal & Enigmatic, part 2 of 4

I'm animating a star field rotating in 3D with simple mathematics. Inspired by the 1991 Amiga demo Enigma by Phenomena.

Phenomenal & Enigmatic, part 1 of 4

I'm starting on a JavaScript Canvas demo, heavily inspired by the 1991 Amiga demo Enigma by Phenomena.

JavaScript Csv file generator, part 3 of 3

The final touches are added to my CSV file generation framework in JavaScript. Escaping the separator and quotation marks are done, and the framework is finished!

JavaScript Csv file generator, part 2 of 3

Here I implement the basics of a simple CSV file generation framework in JavaScript.

JavaScript Csv file generator, part 1 of 3

To implement a CSV file generation framework in JavaScript, I start with imagining how I would like to use the framework. From there, I create unit tests to get me started.

JavaScript unit test framework, part 4 of 4

In the last part of this series, I add a pluggable output system to my JavaScript unit test framework, so that test results can be displayed nicely, or sent to a server for logging.