0% found this document useful (0 votes)
124 views

JavaScript Interview Questions

This document contains questions about JavaScript concepts like this, classes and objects, hoisting, promises, asynchronous operations, higher order functions, callback functions, event handling, function expressions, comparison operators, loops, scope, data types, error handling in HTTP calls, Angular concepts like dependency injection, routing, templates, reactive forms, services, pipes, directives, data binding and component lifecycle. It asks about the purpose, implementation and differences between these concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views

JavaScript Interview Questions

This document contains questions about JavaScript concepts like this, classes and objects, hoisting, promises, asynchronous operations, higher order functions, callback functions, event handling, function expressions, comparison operators, loops, scope, data types, error handling in HTTP calls, Angular concepts like dependency injection, routing, templates, reactive forms, services, pipes, directives, data binding and component lifecycle. It asks about the purpose, implementation and differences between these concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

JavaScript Interview Questions

What is the purpose of this in JavaScript?

What are classes and objects in JS?

What is Hoisting in JS?

When to use Promise in real applications?


What are Promises in JS?

How to implement promises in JS?

What are Asynchronous operations in JS?


What is the Higher order function?

What are callback Functions?

When to use callback functions in real applications?


What is the use of event handing in JS?

What are the types of functions in JS? What are named and anonymous functions?

What is function expression in JS?


What is the difference between == and === in JS?

What is foreach method? Compare it with for of and for in loop?

What is the difference between for of and for in loop?


What is the difference between for, while and do while loops?

What is a loop? What are the types of loops in JS?

What is the difference between var, let, and const in JS?


What is scope in JS?

What is array, functions, and objects?

What is the difference between primitive and nonprimitive data types?


What are data types in JS? What are primitive data types?

What is JavaScript?
How do you perform error handling in http calls?
What is HTTP Client in angular?

How to create Reactive forms?

Difference between Template and Reactive form in Angular?


How to Create Template form?

Router links Answers

What is a Router Outlet?


What is a Dependency injection?

What is Angular Router?

What difference is there if we call pipe in .ts and .html file?


What is a service?

What is the purpose of Async pipe?

What is pure and impure pipe?


What is Pipe?

Chain Pipe and parameterized pipe?

What are directives?


Types of Directives and what are structural directives?

What are attribute directives?

What is data Binding?


What are various ways of component communication?

What is View Child?

What are Lifecycle hooks of component? Or types of lifecycle hooks?


What is a component Decorator?

What is component?

What is a template?

You might also like