JSFiddle - React, Tailwind, and code Playground by Xeon06 July 23, 2011 JavaScript var n = 3; for(var i = 0; i < n; i++) alert(i / (n - 1));