Opening your workspace…
Workspace/Coding room
Opening your workspace…
At the SCP Foundation cafeteria, each fortune is tucked between two containment seals before it reaches the tray. When a fortune arrives as the string fortune, remove exactly one character from its beginning and exactly one from its end, then return everything between them unchanged, spaces included. Even if the same character appears elsewhere, leave it alone. Sometimes the seals enclose nothing at all; in that case, return the empty string.
"*bring jam!"Output"bring jam"Removing the two seals leaves the eight characters between them, including the space.
"()"Output""There is nothing between the two seals.
Where does the message start, and which character belongs to the far seal?
/** @param {string} fortune * @returns {string} */ function solve(fortune) { // Write your solution 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.
"*bring jam!""bring jam"