JSFiddle - React, Tailwind, and code Playground

JavaScript

arr = []
for(var i=0; i<10;i++){
 arr[i] = i+20;
    alert(arr[i]);
}