Tag Archives: IDs

Generate dynamic ID’s using JavaScript – JavaScript Dev Feed

Generate dynamic ID’s using JavaScript Create simple ID generator with math random const generateID = ()=> { return Math.random().toString(36).slice(2) } // How to use const UID = generateID() Enter fullscreen mode Exit fullscreen mode Generate dynamic ID’s with length control const generateID = (length)=> { const id = Math.random().toString(36).slice(2); const uid = […Array(length)].reduce((r)=> { return…

Read More