the third exercise is done for javascript chapter