Practice problems for javascript