JavaScript: Ternary operator
Instructions
Loading...
Your exercise will be checked with these tests:
import { expect, test } from 'vitest';
import f from './index.js';
test('test', () => {
expect(f('hey')).toBe('yeh');
expect(f('Hey')).toBe('Hey');
expect(f('')).toBe('');
});
Teacher's solution will be available in:
20:00
