With a Loop! if you want something repeated 10 times
for( var i = 0 ; i < 10 ; i++ ){
//Code To Execute here
}
var i is started at 0,
then the condition of the loop is. "A long as the value of i is less than 10",
i++ means the value of i is incremented by one each time the loop is executed