Some practice programs in JS