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.
xxxxxxxxxx30
var assert = require('assert');function findDuplicates(str) { const dupes = []; // fill in return dupes;}try { assert.deepEqual(findDuplicates('The dog is the best'), ['the']); console.log( 'PASSED: ' + "`findDuplicates('The dog is the best')` returns `['the']`" );} catch (err) { console.log(err);}try { assert.deepEqual(findDuplicates('Happy thanksgiving, I am so full'), []); console.log( 'PASSED: ' + "`findDuplicates('Happy thanksgiving, I am so full’)` returns `[]`" );} catch (err) {OUTPUT
Results will appear here.