JavaScript Code Challenge #8 for, while and do while loops