How to create permutations for an array using javascript Development, Interview Questions, Javascript Create permutations for an array using javascript