JavaScript: Syntactic sugar
Instructions
Loading...
Your exercise will be checked with these tests:
import { expect, test } from 'vitest';
import f from './index.js';
test('test', () => {
const text = 'If I look back I am lost';
expect(f(text, 'I')).toEqual('f look back am lost');
expect(f('zz Zorro', 'z')).toEqual(' Zorro');
});
Teacher's solution will be available in:
20:00
