Advertisement
CR7CR7

functionNumber

Feb 26th, 2022
776
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let input = [
  2.   12
  3. ];
  4. let print = this.print || console.log;
  5. let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
  6. let number = +gets();
  7. function telerikTemplate(number) {
  8.   if (number < 10) {
  9.       return 'In the 10th';
  10.   }
  11.   if (number < 50) {
  12.       return 'In the 50th';
  13.   }
  14.   if (number < 100) {
  15.       return 'In the 100th';
  16.   }
  17. }
  18.  
  19. print(telerikTemplate(number));
  20.  
Advertisement
RAW Paste Data Copied
Advertisement