JavaScript is THE scripting language of the Web

JavaScript has both of those and also a do-while loop (test the condition at the end of the body of the loop). An aside: In addition to the usual for loop (which may be used to do something a speciied number of times etc. or to loop thru a string or array), JavaScript has two other for loops both of which may be used to iterate thru objects. Both involve subtleties, and should not be used with ... ................
................