title: How to Reverse a string with numbers, but don't reverse 1 and 0?
body: <p>I am learning random algorithms, and I am currently stock in one, where I have to reverse a string that contains numbers, but I am not to reverse 1 and 0 in the string e.g, 2345678910 would be 1098765432.</p>
  
  <p>Here's what I've done so far:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function split(str) {
    let temp = [];
    temp = str.split('');
    const backwards = [];
    const totalItems = str.length - 1;
    for (let i = totalItems; i &gt;= 0; i--) {
      backwards.push(temp[i]);
  
    }
    return backwards.join('').toString();
  
  }
  console.log(split("10 2 3 U S A"));
  console.log(split("2345678910"));</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am currently having the issue of not reversing the 10. </p>
  
  <p>What am I doing wrong?</p>