Intermediate
Hide Half a Citation
While an answer streams, a citation marker such as [1] arrives one character at a time. Type text into #text; #shown must show it, except that a trailing [ or [ followed by digits (an unfinished marker) must be removed.
Returns last 7 days [1 must show Returns last 7 days . Returns last 7 days [1] must stay as it is.
What Check tests
- A trailing
[is hidden - A trailing
[1is hidden - A complete
[1]stays - A bracket in the middle stays
- Text with no brackets is unchanged
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.