JSFiddle - React, Tailwind, and code Playground
JavaScript
var loop = function(log){
var n = 0
while (n < log.length){
console.log(log[n])
n++
if (n === log.length){
break
}
}
}
var test = ["a", "b"]
loop(test)
var loop = function(log){
var n = 0
while (n < log.length){
console.log(log[n])
n++
if (n === log.length){
break
}
}
}
var test = ["a", "b"]
loop(test)