JavaScript: Conditions inside loops
Instructions
Loading...
Your exercise will be checked with these tests:
import { expect, test } from 'vitest';
import f from './index.js';
test('test', () => {
expect(f('axe', 'a')).toEqual(1);
expect(f('', 'a')).toEqual(0);
expect(f('OpPa', 'p')).toEqual(2);
expect(f('OpPa', 'P')).toEqual(2);
});
Teacher's solution will be available in:
20:00
