daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Nov 13th, 2018 90 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. const numToDigits = (input = prompt("Введите число: ")) => {
  2.     const t = parseInt(input, 10)
  3.     if (t > 0 && t < 1000) {
  4.         const [s, d, e] = input.toString().padStart(3, "0").split("")
  5.         return {
  6.             100: +s,
  7.             10: +d,
  8.             1: +e
  9.         }
  10.     }
  11.     console.error("Хуйню ввели Вы вместо числа нужного")
  12.     return {}
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top