document write select for var 20 console log document write option opt

1
2
3
4
5
6
document.write('<select>');
for (var i = 1; i <= 20; i++) {
console.log(i);
document.write('<option>'+ i +'</option>');
};
document.write('</select>')