JSFiddle - React, Tailwind, and code Playground by ChaseWest January 06, 2014 JavaScript var password = Math.random().toString(36).slice(-8); alert(password);