Angular, JavaScript, HTML, CSS, and Git interview questions and answers

When I’m taking interviews or sitting on the other side of the table these questions come up almost every single time. 🔹 Angular 1. What is Angular, and how is it different from other frontend frameworks? 2. Explain component lifecycle hooks. Which one is most commonly used? 3. What is data binding, and what are its types in Angular? 4. What is the difference between ngOnInit and constructor? 5. What are services, and why are they used? 6. How does dependency injection work in Angular? 7. What is the difference between template-driven forms and reactive forms? 🔹 JavaScript 8. What is the difference between var, let, and const? 9. Explain closures with a real-world example. 10. What is hoisting in JavaScript? 11. What is the difference between == and ===? 12. What are promises, and how do async/await work? 13. Explain the JavaScript event loop. 🔹 HTML 14. What is semantic HTML, and why is it important? 15. What is the difference between div and span? 16. What is the difference between inline and block elements? 🔹 CSS 17. What is the CSS box model? 18. What is the difference between position: relative, absolute, and fixed? 19. How does Flexbox differ from CSS Grid? 🔹 Git 20. What is the difference between git merge and git rebase? 21. What is the difference between git pull and git fetch? 22. How do you resolve merge conflicts in Git? 23. What is git stash, and when would you use it? #Angular #JavaScript #Git #FrontendInterview #WebDevelopment #InterviewPreparation #SoftwareEngineer

To view or add a comment, sign in

Explore content categories