lect2 prob4 js string & number code