//любая функция может выбросить ошибкуfunction functionWithException() { throw new Error("test exception")}functionWithException()