Interview Questions
JavaScript
Theory
Angular JS
Theory-based
-
Components vs Directives
-
componentFactoryResolver
-
Decorator design pattern
-
What are the modules, component and service?
-
How many types of modules are there?
-
Can you add multiple modules in a single angular application?
-
-
How to detect changes in the input property passed from parent to child component?
-
How to pass data from child to parent component?
-
Lifecycle methods in angular
-
Observables vs Promises in angular
-
Data sharing between parent to child using -
@Input
-
Data sharing between child to parent using -
@ViewChild, @Output and Event-emitter
-
AOT vs JIT, which one is better
-
Dependency injection
-
How would you create a filter using angular?
-
On which life cycle hook component/framework is already created?
-
Constructor
vsngOnInit
-
What are different change detection strategies available and how to forcefully detect changes?
-
DOM Sanitization
-
Security Practices in angular
-
View Encapsulation
-
IVY
-
Route guards
-
What is the default loading strategy in angular - eager or lazy?
Scenario-Based
-
If the same service is added to the root and feature module, what will be the behavior?
-
An observable returning a stream of data and if you subscribe at a later stage then how can you get previous data that have been missed?
-
Digest cycle vs Change detection
-
Can you load and unload an angular feature module?
HTML
-
datalist
tag in HTML -
Semantic tags
-
What's new in HTML 5?
-
What is the difference between
async
anddefer
attribute inscript
tag?
CSS
-
What is a box model in CSS?
-
Pseudo classes
(:hover, :active)
vs pseudo elements(:after, :before)
-
Explain different types of positions in CSS
fixed, relative, absolute, static, sticky
-
Explain the following CSS selectors
div, p
div p
div > p
div + p
div ~ p -
What are CSS media queries and what are they used for?
-
Bootstrap
-
CSS Pre-processors
-
Flexbox in CSS Read
-
box-shadow
-
box-sizing
-
Display properties - none, block, inline, inline-block
-
vm, em, rem, vh, vw font-size properties
-
CSS Animations
-
What is a
float
property in CSS? How do the other elements surrounding it work? Why is theclear
property required? Read -
How would you align an image to a circular div, just like on Instagram?
-
How would you write a code to freeze the top row and column of a table?
-
CSS Specificty
TypeScript
-
Static vs dynamic typing
-
Generics in typescript
-
How can you define an optional value without using a question mark?
-
never
vsany
-
Basics of typescript Read
-
Basics of typescript 2024 Read
React JS
-
What are
Higher order components
in React? -
React Thunk
vsReact Saga
Redux
-
How can you create Redux library polyfill? Read