SyntaxFix
Write A Post
Hire A Developer
Questions
Because * has higher precedence than |, it can be shorter by using |0 to replace Math.floor().
*
|
|0
Math.floor()
[...Array(40)].map(e=>Math.random()*40|0)