From the mind of Kon Pik…

Hopeless without the internet

javascript

UPDATED: Coding Contest: JavaScript Konami Code

Jump to Update from 8/8/2012 Everyone is familiar with the Konami Code – so as I was reading an older article which brought up the Konami Code pranks done by ESPN and Facebook, I thought to myself – what is the smallest amount of JavaScript you need to attach the Konami Code to any site?

Tags: , , , , , , , , ,

Posted in contest, javascript, programming | Comments

Cross-Browser Javascript String Functions: substr, substring, or splice?

Recently I had to do some relatively simple string manipulations. I’ve always been taught to use the .substring method in all the languages I’ve ever used. Javascript actually offers several different approaches. So while I did not have to do anything computationally intensive, I was curious as to which of the following methods actually performed […]

Tags: , , , , , , ,

Posted in javascript, web | Comments