πŸš€ Matters AI (Prev. OptIQ) – Round 2 JavaScript Interview



This content originally appeared on DEV Community and was authored by Mehul Lakhanpal

πŸ“ Questions asked:

1⃣ Implement custom .filter & .reduce

2⃣ Implement dynamic currying function

3⃣ Implement compose function

4⃣ Predict outputs πŸ‘‡

console.log('mehul' == ('lakhanpal' && 'mehul'))   // true
console.log('mehul' === ('lakhanpal' || 'mehul')) // false

⚑ Concepts tested:

  • Functional programming in JS
  • Currying & composition
  • Equality (== vs ===)
  • Short-circuiting (&& / ||)

πŸ’» Questions + Solutions:

πŸ‘‰ https://replit.com/@318097/OptIQ-R2-JS#index.js


This content originally appeared on DEV Community and was authored by Mehul Lakhanpal