Opening your workspace…
Workspace/Coding room
Opening your workspace…
The cellar door has gone a little deaf. Its brass plaque gives a knock pattern and the number of times to play it. Dot writes the whole performance on her cuff before she starts. Return knock repeated copies times, with no gaps between copies. Any spaces already in the pattern are pauses and must stay.
"ta!", 3OUTPUT"ta!ta!ta!"Dot plays three little fanfares.
"tap ", 2OUTPUT"tap tap "Each tap comes with its own pause.
Start with an empty cuff. What gets added each time through the pattern?
/** @param {string} knock * @param {number} copies * @returns {string} */ function solve(knock, copies) { // Write your answer here. }
Tab inserts two spaces. Shift+Tab outdents. Use the arrow keys and Tab to choose a suggestion. Press Escape, then Tab, to leave the editor. Press Control or Command with apostrophe to run samples or with Enter to submit.
"ta!", 3"ta!ta!ta!"