Facebook
From Georgi Iliev, 4 Months ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 60
  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.  
  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. telerikTemplate(+gets());