DEV Community

Discussion on: [Challenge] Multiply 2 numbers without '+-*/' operators and 'for' and 'while' keywords

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Basically a repost of my dangerous add 😋

const multiply = (a,b)=>eval(`${a}${String.fromCharCode(42)}${b}`)
Enter fullscreen mode Exit fullscreen mode