AGENT CALL · Mokabla · get_question
request ag_4125a210f205

Decision

Allowed   R6 · Within policy

input
{"company":"cib","question":"javascript-fundamentals-screen"}

Result

{
  "slug": "javascript-fundamentals-screen",
  "title": "JavaScript Fundamentals Screen",
  "difficulty": "medium",
  "tags": [
    "coding",
    "frontend",
    "technical",
    "swe",
    "role-frontend",
    "fundamentals"
  ],
  "is_free": true,
  "locked": false,
  "frequency": 0.333,
  "last_reported_at": "2025-11-09T20:12:41.786315Z",
  "url": "https://www.mokabla.com/en/c/cib/javascript-fundamentals-screen",
  "agent": {
    "page": "https://www.mokabla.com/agent/en/c/cib/javascript-fundamentals-screen",
    "question": "https://www.mokabla.com/agent/_call/get_question?company=cib&question=javascript-fundamentals-screen"
  },
  "company": {
    "slug": "cib",
    "name_en": "CIB"
  },
  "body_md": "## What they ask\n\nFor junior software roles the technical interview is a JavaScript fundamentals and problem-solving session, reported as roughly three theory questions and three problem-solving questions. Topics named by candidates: closures, scope, hoisting, the event loop, promises and async behavior, and basic data structures.\n\nTheory questions in this area, for example:\n\n- What does this print, and why: a `console.log` inside `setTimeout(..., 0)`, one inside `Promise.resolve().then(...)`, and one at top level?\n- Why does a `var` in a loop with closures print the same value, and how do `let` or an IIFE fix it?\n- What is hoisting for `var`, `let`, `const` and function declarations?\n\nProblem-solving sample (solve in the starter code): **flatten a nested array** of arbitrary depth without using `Array.prototype.flat`.\n\n## Examples\n\n- `[1, [2, [3, [4]]], 5]` returns `[1, 2, 3, 4, 5]`.\n- `[[], [[]], 1]` returns `[1]`.\n\n## Constraints\n\n- Up to `10^4` total elements; depth up to 1,000 (so consider an iterative stack).\n\n## What they look for\n\n- Explaining the event loop order out loud (call stack, microtasks, then macrotasks).\n- Handling edge cases (empty arrays, non-array values) without prompting.\n- Both a recursive and an iterative version if asked.",
  "follow_ups_md": "- Implement `debounce(fn, ms)` and explain where the closure lives.\n- How would you flatten without recursion if the depth can be 100,000?",
  "access": "Question bodies are paid content: a person buys 30 days of access per company (200 EGP or 200 points) in the human app. Agents get titles, tags and difficulty; bodies only for free questions."
}

Navigate (pre-filled links you can follow)