Your branch is behind dev because another developer has already merged their changes. How to update your branch and resolve conflicts?
Frontend
Tell us about pagination and Infinity Scroll: how you used them, what variables were involved, how you communicated with the backend? Why did you choose Infinity Scroll in one place and pagination in another?
How would you implement displaying a discount on a product card? What fields would you add to the entity? How would you calculate the new price — on the frontend or would you expect it from the backend?
Tell us about the tech stack you've worked with the most. What libraries did you use, and why? What are your impressions — which are good, which are bad?
Tell us about your experience with filters: how you displayed them, stored in URL or on the front end, and how you passed them in requests.
You mentioned Axios and React Query — how do you understand what they are and what they are used for?
What is a closure? What is the difference between var and let?
Tell about working with Git: how branches were organized and how they were used in the team?
You mentioned authorization — what approaches did you use? What experience do you have with authorization?
Tell about the 4 Promise methods: Promise.all, Promise.any, Promise.race, Promise.allSettled — what do they do, how do they differ? What will be printed in the console in examples with these methods?
How do you see the storefront for digital goods (subscriptions like PlayStation Plus, Xbox Game Pass, Nintendo, etc.)? What entities/models would you highlight? What queries would you build?
// 1 for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i)) } // 2 console.log(i) var j = 10 console.log(j) // 3 console.log(k) const k = 10 console.log(k) // 4 var a = 2 var b = a b++ console.log(a) console.log(b) // 5 var c = [1, 2, 3] var d = c d.push(4) console.log(c)
A critical bug appeared in production, and it needs urgent fixing, but the dev branch has already moved far ahead with new features. How would you act?
What is the difference between git fetch and git pull?