Add office photos
Employer?
Claim Account for FREE

Gainsight

4.0
based on 104 Reviews
Filter interviews by

Shine Airways Interview Questions and Answers

Updated 5 Feb 2024
Q1. What happens when you call a function using the new keyword?
Ans.

Calling a function using the new keyword creates a new instance of the function's constructor.

  • Creates a new empty object

  • Binds 'this' to the new object

  • Adds a property to the new object called '__proto__' which points to the constructor function's prototype object

  • Returns the new object

Add your answer
Q2. How can you import all exports of a file as an object in JavaScript?
Ans.

You can import all exports of a file as an object in JavaScript using the 'import * as' syntax.

  • Use the 'import * as' syntax followed by the object name and 'from' keyword to import all exports of a file as an object.

  • For example: import * as myExports from './myFile.js';

  • You can then access the exports using dot notation, like myExports.myFunction().

Add your answer
Q3. What is the purpose of the 'this' operator in JavaScript?
Ans.

The 'this' operator in JavaScript refers to the current context or object.

  • Refers to the current object or context in which a function is being executed

  • Can be used to access properties and methods of the current object

  • The value of 'this' is determined by how a function is called

Add your answer
Q4. How are observables different from promises?
Ans.

Observables are streams that can emit multiple values over time, while promises can only emit a single value.

  • Observables can emit multiple values over time, while promises can only emit a single value.

  • Observables are cancellable, while promises are not.

  • Observables support operators like map, filter, and reduce for transforming data streams, while promises do not.

  • Observables are lazy, meaning they do not run until they are subscribed to, while promises start executing as soon ...read more

Add your answer
Discover Shine Airways interview dos and don'ts from real experiences
Q5. What are arrow functions in JavaScript?
Ans.

Arrow functions are a concise way to write functions in JavaScript.

  • Arrow functions are defined using the '=>' syntax.

  • They have a shorter syntax compared to traditional function expressions.

  • They do not have their own 'this' keyword, instead they inherit it from the parent scope.

  • Example: const add = (a, b) => a + b;

Add your answer
Q6. What is AOT compilation in Angular?
Ans.

AOT compilation in Angular stands for Ahead-of-Time compilation, which compiles Angular templates and components during the build process.

  • AOT compilation improves the performance of Angular applications by pre-compiling the templates and components before the browser downloads and runs them.

  • It detects template errors during the build process rather than at runtime, leading to faster rendering and reduced bundle size.

  • AOT compilation eliminates the need for the Angular compiler...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Front end Developer Interview Questions from Similar Companies

3.8
 • 15 Interview Questions
3.5
 • 14 Interview Questions
4.1
 • 13 Interview Questions
3.9
 • 13 Interview Questions
3.5
 • 10 Interview Questions
3.7
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter