Common code problems solved using JavaScript - add your own problems and solutions!