Blog Post Cover

Test Code Input

Published

Just testing a code input!

Here's some JavaScript:

function permutationCheck(string1,string2) {
  let sortOne = string1.split('').sort().join('');
  let sortTwo = string2.split('').sort().join('');
  if(sortOne === sortTwo) {
    return true;
  } else {
   return false; 
  }
}

For shorter musings, you can follow me on Threads
👉🏼 https://www.threads.net/@datawithjon