text: /* https://www.codewars.com/kata/513e08acc600c94f01000001
  
  The rgb() method is incomplete. Complete the method so that passing in RGB decimal values will result in a hexadecimal representation being returned. The valid decimal values for RGB are 0 - 255. Any (r,g,b) argument values that fall out of that range should be rounded to the closest valid value.
  
  The following are examples of expected output values:
  
  rgb(255, 255, 255) // returns FFFFFF
  rgb(255, 255, 300) // returns FFFFFF
  rgb(0,0,0) // returns 000000
  rgb(148, 0, 211) // returns 9400D3
  
  */
  
  function limit(num) {
    if (num > 255) return 255
    if (num <= 0) return "00"
    return num
  }
  
  function rgb(r, g, b){
    return limit(r).toString(16).toUpperCase() + limit(g).toString(16).toUpperCase() + limit(b).toString(16).toUpperCase()
  }