Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx71
var assert = require('assert');function permutations(str) { // Fill in this method return str;}console.log(permutations('abc'));try { assert.deepEqual(permutations('abc'), [ 'abc', 'acb', 'bac', 'bca', 'cab', 'cba', ]); console.log( 'PASSED: ' + "assert.deepEqual(permutations('abc'), ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'])" );} catch (err) { console.log(err);}OUTPUT
Results will appear here.