JavaScript生成随机字符串?

const randomString = () => Math.random().toString(36).slice(2);
console.log( randomString() )  // 随机字符串