DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

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

πŸ“ 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
Enter fullscreen mode Exit fullscreen mode

⚑ Concepts tested:

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

πŸ’» Questions + Solutions:

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

Top comments (0)