how to use math random for id in javascript code example Example: js random id Math.random().toString(36).slice(2);