MCGOWANS1390GO MCGOWANS1390GO Computers and Technology Answered why do we use while loops in javascript? to break out of some block of code to repeat some code while a condition is true to do something if a condition is true to repeat something for a fixed number of times