DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

πŸš€ Leena AI – Round 2 Interview Questions (Frontend/JS)

πŸ“ Questions asked:

1️⃣ Implement Fibonacci sequence β†’ 0,1,1,2,3,5,8...

2️⃣ Explain how this works behind the scenes:

let a = { x: 1 }
let b = Object.create({ x: 1 })
Enter fullscreen mode Exit fullscreen mode

3️⃣ Implement .**getFirstElement()** on arrays

4️⃣ Implement batch β†’ Take an array of async operations + batchSize, execute tasks in batches.

πŸ’» Questions + Solutions:

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

Top comments (0)