Sobes.tech

Frontend

/* Konsolda nə göstərəcək */ console.log(1); Promise.resolve().then(() => console.log(2)); setTimeout(() => console.log(3)); Promise.resolve().then(() => console.log(4)); console.log(5); setTimeout(() => { Promise.resolve().then(() => console.log(6)); console.log(7); Promise.resolve().then(() => console.log(8)); }, 0); setTimeout(() => console.log(9));

260

/* MyReadonly tipini yazın - bütün sahələri yalnız oxumaq üçün edir */ type User = { id: number name: string } type MyReadonly<T> = any const user: MyReadonly<User> = { id: 1, name: "John" } user.name = "Jane"

205

/* MyRequired tipini yazın — bütün seçimlik sahələri məcburi edir */ type User = { id?: number name?: string } type MyRequired<T> = { } const user1: MyRequired<User> = { id: 1, name: "John" } const user2: MyRequired<User> = { id: 1 }

186

/* Konsolda nə çıxacaq */ async function f() { console.log(1); const promise = new Promise((resolve) => { console.log(2); setTimeout(() => { console.log(3); resolve("hazır!"); console.log(4); }); }); console.log(5); const result = await promise; console.log(6); console.log(result); return "Nəticə"; } f(); console.log(7);

178

Hansı UI kitabxanaları ilə işlədiniz? Ant Design və Material UI-nin üstünlükləri və çatışmazlıqları nədir?

172

ESLint və Prettier-in bir-biri ilə ziddiyyət təşkil etməməsi üçün tənzimləmək məcburiyyətində qaldınızmı?

169

Hansı quruluş alətləri istifadə olunub? Webpack və Vite-in üstünlükləri və çatışmazlıqları nədir?

166
/4