Looking for Розробка сучасних вебзастосунків на платформі Node.js test answers and solutions? Browse our comprehensive collection of verified answers for Розробка сучасних вебзастосунків на платформі Node.js at learn.ztu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Node.js
Який з цих рядків спричинить помилку компіляції TypeScript?
interface User {
readonly id: number;
name: string;
age?: number;
}
const u: User = { id: 1, name: 'А', createdAt: new Date() } as any;
Node.js
Що виведе .catch()?
fetchUser(1)
.then(u => { throw new Error('bad'); })
.then(x => console.log('x', x))
.catch(e => console.log('caught', e.message));