JavaScript: Logical operators
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
import { expect, test } from 'vitest';
import f from './index.js';
test('test', () => {
expect(f(2016)).toBe(true);
expect(f(2000)).toBe(true);
expect(f(2017)).toBe(false);
expect(f(2018)).toBe(false);
expect(f(1900)).toBe(false);
});
Teacher's solution will be available in:
20:00
