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.
xxxxxxxxxx
36
var assert = require('assert');
function stringBreakdown(str, dictArr) {
return true;
}
const str = 'applecomputer';
const dictArr = ['apple', 'computer'];
stringBreakdown(str, dictArr);
// true
try {
assert.equal(
stringBreakdown('crazyrichasians', ['crazy', 'rich', 'asians']),
true
);
console.log(
'PASSED: ' +
"Expect <code>stringBreakdown('crazyrichasians', ['crazy', 'rich', 'asians'])</code> to return <code>true</code>"
);
} catch (err) {
console.log(err);
}
try {
assert.equal(stringBreakdown('lockcombination', ['lock', 'combo']), false);
OUTPUT
Results will appear here.