A Pen by Daniele Romano

Thumbnail
This awesome code was written by DanRom624, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright DanRom624 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Daniele Romano</title>
  
  
  
  
  
</head>

<body>

  
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/DanRom624/a-pen-by-daniele-romano-eZooKo */
var input = '';

function heapsPermute(array) {
  input = array.join('');
  //console.log(input);
  return input;
};

// For testing:
var print = function(input) {
  console.log(intput);
}

heapsPermute(['a', 'b', 'c', 'd']);
console.log(input);
// heapsPermute([1, 2, 3], print)

Comments