For Loop Inside While Loop Javascript Syntax Practice