Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Pegar 2 nĂºmeros e unir eles.
- // Ex:
- // f(15, 20) = 1520
- // f(10,4815) = 104815
- //
- function integerConcate(n1,n2) {
- return (n1 * Math.round(Math.pow(10, Math.round(Math.log(Math.abs(n2)+1) / 2))) + n2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement