Hitung 1 hingga 5 JavaScript

for(var i = 1; i <= 10; i++) {
    console.log(i);
}
Frightened Fish