Add office photos
Employer?
Claim Account for FREE

JTG E-Business Software

3.8
based on 5 Reviews
Filter interviews by

MADRAS CRICKET CLUB Interview Questions and Answers

Updated 25 Nov 2024

Q1. What is event bubbling

Ans.

Event bubbling is the process where an event triggered on a child element is propagated up to its parent elements.

  • Events triggered on child elements will also trigger the same event on parent elements

  • Event bubbling allows for delegation of event handling to a parent element

  • Can be controlled using event.stopPropagation() method

Add your answer

Q2. Reverse an array in JS ?

Ans.

Use the reverse() method to reverse an array in JavaScript.

  • Use the reverse() method on the array to reverse its elements in place.

  • Example: const arr = ['apple', 'banana', 'cherry']; arr.reverse(); // ['cherry', 'banana', 'apple']

Add your answer

Q3. How does JS Work?

Ans.

JS is a scripting language that allows for dynamic content on websites.

  • JS is a client-side scripting language used to create interactive web pages.

  • It can manipulate HTML and CSS to dynamically update content without reloading the page.

  • JS can handle events like button clicks, form submissions, and mouse movements.

  • It can also make asynchronous requests to fetch data from servers using AJAX.

  • JS code is executed by the browser's JavaScript engine, such as V8 in Chrome or SpiderMon...read more

Add your answer

Q4. Sort the array using JS

Ans.

Use the sort() method in JavaScript to sort an array of strings.

  • Use the sort() method with a compare function to sort the array alphabetically.

  • For example, array.sort((a, b) => a.localeCompare(b)); will sort the array in ascending order.

  • To sort the array in descending order, you can use array.sort((a, b) => b.localeCompare(a));

Add your answer
Discover MADRAS CRICKET CLUB interview dos and don'ts from real experiences

Q5. Event loop in JS

Ans.

Event loop in JS manages asynchronous operations by executing callback functions in a queue.

  • Event loop is responsible for handling asynchronous operations in JavaScript.

  • It allows non-blocking I/O operations by executing callback functions in a queue.

  • Event loop continuously checks the call stack and the callback queue to prioritize tasks.

Add your answer

Q6. Type of JS modules

Ans.

There are two types of JS modules: CommonJS and ES6 modules.

  • CommonJS modules use 'require' and 'module.exports' to import and export modules.

  • ES6 modules use 'import' and 'export' statements to import and export modules.

  • ES6 modules are statically analyzable, while CommonJS modules are dynamically loaded at runtime.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at MADRAS CRICKET CLUB

based on 2 interviews
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Frontend Developer Intern Interview Questions from Similar Companies

4.2
 • 12 Interview Questions
3.0
 • 12 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