JSFiddle - React, Tailwind, and code Playground

JavaScript

let x = 1;
for (x = x + 1; x < 5; x++) {
    console.log(x); // prints 2, 3, 4
}