text: // Convert number to file size in bytes, kb, mb, and gb
  
  // Step 2
  //
  // Remove unneeded blocks, for example we do not need else here
  // Remove repeating code
  // Improve naming
  
  'use strict';
  
  const size = (bytes) => {
    if (bytes === 0) return '0';
    const exp = Math.floor(Math.log(bytes) / Math.log(1000));
    const value = Math.round(bytes / 1000 ** exp);
    let unit = ' byte';
    if (exp === 1) unit = ' kb';
    if (exp === 2) unit = ' mb';
    if (exp === 3) unit = ' gb';
    return value.toString() + unit;
  };
  
  const result = size(123456);
  console.log(result);
  