Add office photos
Employer?
Claim Account for FREE

Eupheus

3.5
based on 36 Reviews
Filter interviews by

medtigo Interview Questions and Answers

Updated 5 Feb 2024

Q1. Difference between let, var, and const keyword

Ans.

let, var, and const are JavaScript keywords used for declaring variables with different scopes and mutability.

  • var is function-scoped and can be redeclared and reassigned

  • let is block-scoped and can be reassigned but not redeclared

  • const is block-scoped and cannot be reassigned or redeclared

  • Use const for values that won't change, let for values that will, and var for legacy code or global variables

Add your answer

Q2. Explain the use of the $ sign in JQuery

Ans.

The $ sign in JQuery is a shorthand for the JQuery function.

  • The $ sign is used to select elements in JQuery.

  • It can also be used to create new elements.

  • It is a shorthand for the JQuery function.

  • Example: $('p') selects all the paragraphs on a page.

Add your answer

Q3. What is hoisting in javascript

Ans.

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.

  • Variables declared with var are hoisted to the top of their scope

  • Function declarations are also hoisted to the top of their scope

  • Function expressions are not hoisted

  • Hoisting can lead to unexpected behavior and bugs

  • Example: console.log(x); var x = 5; // Output: undefined

Add your answer

Q4. Rate yourself in Javascript and JQurey

Ans.

I rate myself 8/10 in Javascript and 7/10 in jQuery.

  • Proficient in using vanilla Javascript to create dynamic and interactive web pages

  • Experience in using jQuery to simplify DOM manipulation and event handling

  • Familiarity with popular Javascript frameworks like React and Angular

  • Continuously learning and improving my skills in Javascript and jQuery

Add your answer
Discover medtigo interview dos and don'ts from real experiences

Q5. Explain async, await, and promises

Ans.

Async, await, and promises are JavaScript features used for handling asynchronous operations.

  • Promises are objects that represent the eventual completion or failure of an asynchronous operation.

  • Async/await is a syntax for writing asynchronous code that looks like synchronous code.

  • Async functions always return a promise.

  • Await can only be used inside an async function and it waits for the promise to resolve or reject before continuing execution.

  • Async/await is built on top of pro...read more

Add your answer

Q6. Difference between == and ===

Ans.

The difference between == and === is that == compares values while === compares both values and types.

  • The == operator performs type coercion before comparing values.

  • The === operator does not perform type coercion and compares both values and types.

  • Using === is generally considered safer and more reliable.

  • Example: 5 == '5' returns true, but 5 === '5' returns false.

Add your answer

Q7. Explain callback hell

Ans.

Callback hell is a situation where multiple nested callbacks make the code difficult to read and maintain.

  • It occurs when callbacks are nested within other callbacks.

  • It can lead to code that is difficult to read and maintain.

  • It can be avoided by using promises or async/await.

  • Example: fs.readFile('file.txt', function(err, data) { fs.writeFile('file2.txt', data, function(err) { console.log('File written!'); }); });

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 Interview Questions from Similar Companies

3.9
 • 1.9k Interview Questions
3.8
 • 478 Interview Questions
4.0
 • 463 Interview Questions
3.8
 • 338 Interview Questions
4.0
 • 202 Interview Questions
4.1
 • 154 Interview Questions
View all
Top Eupheus Interview Questions And Answers
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
Get AmbitionBox app

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