do more than one thing at start of or loop javascript

JavaScript
// You'll have to do it th hard way:
doSomething();
for(doSomethingElse(); true == false; doAnotherThing()) {
  doYetAnotherThing();
}
Source

Also in JavaScript: