how to create loop in javascript code example Example: javascript for loop for (var i; i < 10; i++) { }