Blog

JavaScript – Date.prototype Extensions

Yesterday’s post made me want to extend the Date.prototype object a bit more. Therefore I came up with the following code: The above code defines the following prototypal functions: Date Adders Date.prototype.addYears() Date.prototype.addMonths() Date.prototype.addDays() Date.prototype.addHours() Date.prototype.addMinutes() Date.prototype.addSeconds() Date.prototype.addMilliseconds() Date Differs Read more…

By Chris West, ago
Blog

POW – Unnamed Function #2

This Problem of the Week involves determining the identity of a well-known computer science function and renaming the variables so that the definition makes more sense.  The following is the function definition (obfuscated by me): What I can tell you is that this function Read more…

By Chris West, ago