Facebook
From Cobalt Gorilla, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 101
  1. function makeUpperCase(str) {
  2.   //return str.toUpperCase()
  3.   let a='A'
  4.   let b='B'
  5.   let c='C'
  6.   let d='D'
  7.   let e='E'
  8.   let f='F'
  9.   let g='G'
  10.   let h='H'
  11.   let ii='I'
  12.   let j='J'
  13.   let k='K'
  14.   let l='L'
  15.   let m='M'
  16.   let n='N'
  17.   let o='O'
  18.   let p='P'
  19.   let q='Q'
  20.   let r='R'
  21.   let s='S'
  22.   let t='T'
  23.   let u='U'
  24.   let v='V'
  25.   let w='W'
  26.   let x='X'
  27.   let y='Y'
  28.   let z='Z'
  29.  
  30.   let strSplit= str.split('')
  31.   let strArray=[]
  32.   let regex=0
  33.   let regex1=1
  34.     let regex2=2
  35.       let regex3=3
  36.         let regex4=4
  37.           let regex5=5
  38.             let regex6=6
  39.               let regex7=7
  40.                 let regex8=8
  41.                   let regex9=9
  42.   for(let i=0;i<strSplit.length;i++){
  43.  if(strSplit[i]==='!'){
  44.       strArray.push('!')
  45.     }
  46.      if(strSplit[i]===' '){
  47.       strArray.push(' ')
  48.     }
  49.          if(strSplit[i]===','){
  50.       strArray.push(',')
  51.     }
  52.      if(strSplit[i]==='0'){
  53.       strArray.push(regex)
  54.     }
  55.      if(strSplit[i]==='1'){
  56.       strArray.push(regex1)
  57.     }
  58.     if(strSplit[i]==='2'){
  59.       strArray.push(regex2)
  60.     }
  61.     if(strSplit[i]==='3'){
  62.       strArray.push(regex3)
  63.     }
  64.     if(strSplit[i]==='4'){
  65.       strArray.push(regex4)
  66.     }
  67.     if(strSplit[i]==='5'){
  68.       strArray.push(regex5)
  69.     }
  70.    
  71.      if(strSplit[i]==='6'){
  72.       strArray.push(regex6)
  73.     }
  74.     if(strSplit[i]==='7'){
  75.       strArray.push(regex7)
  76.     }
  77.     if(strSplit[i]==='8'){
  78.       strArray.push(regex8)
  79.     }
  80.     if(strSplit[i]==='9'){
  81.       strArray.push(regex9)
  82.     }
  83.    
  84.     if(strSplit[i]==='a'){
  85.       strArray.push(a)
  86.     }
  87.     if(strSplit[i]==='A'){
  88.       strArray.push(a)
  89.     }
  90.      if(strSplit[i]==='b'){
  91.       strArray.push(b)
  92.     }
  93.     if(strSplit[i]==='B'){
  94.       strArray.push(b)
  95.     }
  96.      if(strSplit[i]==='c'){
  97.       strArray.push(c)
  98.     }
  99.     if(strSplit[i]==='C'){
  100.       strArray.push(c)
  101.     }
  102.      if(strSplit[i]==='d'){
  103.       strArray.push(d)
  104.     }
  105.     if(strSplit[i]==='D'){
  106.       strArray.push(d)
  107.     }
  108.      if(strSplit[i]==='e'){
  109.       strArray.push(e)
  110.     }
  111.     if(strSplit[i]==='E'){
  112.       strArray.push(e)
  113.     }
  114.      if(strSplit[i]==='f'){
  115.       strArray.push(f)
  116.     }
  117.     if(strSplit[i]==='F'){
  118.       strArray.push(f)
  119.     }
  120.      if(strSplit[i]==='g'){
  121.       strArray.push(g)
  122.     }
  123.     if(strSplit[i]==='G'){
  124.       strArray.push(g)
  125.     }
  126.      if(strSplit[i]==='h'){
  127.       strArray.push(h)
  128.     }
  129.     if(strSplit[i]==='H'){
  130.       strArray.push(h)
  131.     }
  132.      if(strSplit[i]==='i'){
  133.       strArray.push(ii)
  134.     }
  135.     if(strSplit[i]==='I'){
  136.       strArray.push(ii)
  137.     }
  138.      if(strSplit[i]==='j'){
  139.       strArray.push(j)
  140.     }
  141.     if(strSplit[i]==='J'){
  142.       strArray.push(j)
  143.     }
  144.      if(strSplit[i]==='k'){
  145.       strArray.push(k)
  146.     }
  147.     if(strSplit[i]==='K'){
  148.       strArray.push(k)
  149.     }
  150.      if(strSplit[i]==='l'){
  151.       strArray.push(l)
  152.     }
  153.     if(strSplit[i]==='L'){
  154.       strArray.push(l)
  155.     }
  156.      if(strSplit[i]==='m'){
  157.       strArray.push(m)
  158.     }
  159.     if(strSplit[i]==='M'){
  160.       strArray.push(m)
  161.     }
  162.      if(strSplit[i]==='n'){
  163.       strArray.push(n)
  164.     }
  165.     if(strSplit[i]==='N'){
  166.       strArray.push(n)
  167.     }
  168.      if(strSplit[i]==='o'){
  169.       strArray.push(o)
  170.     }
  171.     if(strSplit[i]==='O'){
  172.       strArray.push(o)
  173.     }
  174.      if(strSplit[i]==='p'){
  175.       strArray.push(p)
  176.     }
  177.     if(strSplit[i]==='P'){
  178.       strArray.push(p)
  179.     }
  180.      if(strSplit[i]==='q'){
  181.       strArray.push(q)
  182.     }
  183.     if(strSplit[i]==='Q'){
  184.       strArray.push(q)
  185.     }
  186.      if(strSplit[i]==='r'){
  187.       str