Simple JavaScript Timer: Part III

The remaining requirements from the last session are: Refactoring the two buttons to just one for starting/stopping the timer Being able to capture snapshots of the timer countdown on a button press. Clearing the snapshots and resetting the timer on another button press. Refactoring the two buttons to a single one which would handle the […]

Simple JavaScript Timer: Part II

In the last part, of ‘Simple JavaScript Timer: Part I’, the asynchronous function was running as soon as the page was loaded. A few reasons why I assumed this was happening: Since there were no synchronous calls, there was nothing on the call stack and therefore it just ran Maybe some sort of mechanism was […]

Simple JavaScript Timer: Part I

Ok following along the heels of the last mini project run down ‘Binary to Decimal Convertor‘ is a JavaScript Timer. This project will borrow items and techniques learned from that excursion, one of which is how to showcase the various stages of the development process that shaped it. To that end, instead of codepen.io, github […]

JavaScript binary to decimal application (Part Three): The Flux Capa… Convertor

Ok been on a hiatus due to work/college and most importantly my first born. So after a much waited delay, here’s the final piece – the actual conversion from Binary to Decimal. This is the logic, which I took adapted from my Java lectures. var convertToDecimal = function(binVal){   var result = 0;   var […]

JavaScript binary to decimal application (Part Two): Regular Expressions

Continuing on from the previous post, where I set up a pen on codepen.io to create a simple application that would take a binary number and covert to decimal. I’d laid out front end and the two tasks I had left were: logic for the binary to decimal conversion. restricting the entry value to 1’s […]

JavaScript binary to decimal application (Part One): Getting Started

Following on the heels of the last blog “Enter your destiny here – Javascript binary to decimal“, this entry will pickup and start on the tasks for creating what was set out – creating a web application, of sorts, to convert a binary entry to decimal representation. Firstly, a place to develop and host it. […]