In last 6 months, I got chance to interview for frontend developer role. I cracked some of the interviews :) and also failed some of them :( Here are some interview questions.
HTML & CSS
- What are semantic tags?
- Why we use meta tags?
- What does doctype mean?
- Difference between relative and absolute position?
- Ways to add CSS in HTML file?
- How many ways do you know to centre a div? explain.
- What are pseudo selectors and classes?
- What are combinators in css?
- Explain +, > , ~ combinators.
- Why we use link tag to include external css file?
Javascript
- What is difference between defer and async attribute used in script tag
- What is ES5, ES6?
- Difference between var, let and const. [Most asked question]
- Closure and real life example of closure.
- What is hoisting and dead temporal zone.
- Some array functions and operations.
- Explain call, bind and apply [Most asked question]
- What is this in javascript?
- What is arrow function?
- Asynchronous nature of javascript.
In this blog, I shared those HTML, CSS and JS questions only which I could remember. There are some awesome resources to help you in your preparation:-