JavaScript: Creating (defining) functions
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
// @ts-check
import { expect, test, vi } from 'vitest'
import f from './index.js';
test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
f()
const firstArg = consoleLogSpy.mock.calls.join('\n');
expect(firstArg).toBe('Winter is coming')
})
Teacher's solution will be available in:
20:00
