{
  "app": {
    "name": "Mokabla",
    "url": "https://www.mokabla.com",
    "description": "Real interview questions from companies in Egypt, organised by company. Access is sold per company for 30 days."
  },
  "page": {
    "kind": "question",
    "title": "Question · javascript-fundamentals-screen",
    "humanPath": "/en/c/cib/javascript-fundamentals-screen",
    "humanOnly": false
  },
  "identity": {
    "class": "declared",
    "agent": "ClaudeBot",
    "operator": "Anthropic",
    "verified": false,
    "reason": "The user agent is ClaudeBot (Anthropic), which identifies itself as an AI agent.",
    "signals": [
      "Known agent user agent"
    ],
    "claimable": false
  },
  "state": {
    "question": {
      "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?"
    },
    "paid": false,
    "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."
  },
  "actions": [
    {
      "name": "get_question",
      "description": "One question with its body. Bodies are paid content unless the question is free.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "question": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/get_question?company=cib&question=javascript-fundamentals-screen",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "list_questions",
      "description": "The questions reported at a company: titles, tags, difficulty, whether each is free or paid.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "page": "number?"
      },
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=cib",
      "ready": true,
      "missing": []
    },
    {
      "name": "buy_access",
      "description": "Buy 30 days of access to a company.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "payment",
      "input": {
        "company": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/buy_access?company=cib",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "post_comment",
      "description": "Comment on a question.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "write",
      "input": {
        "question": "string",
        "text": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/post_comment?question=javascript-fundamentals-screen",
      "ready": false,
      "missing": [
        "text"
      ],
      "humanPath": "https://www.mokabla.com/en/companies"
    }
  ],
  "navigate": [
    {
      "label": "This question, as data (free questions only)",
      "href": "https://www.mokabla.com/agent/_call/get_question?company=cib&question=javascript-fundamentals-screen"
    },
    {
      "label": "All questions at this company",
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=cib"
    },
    {
      "label": "The company page",
      "href": "https://www.mokabla.com/agent/en/c/cib"
    },
    {
      "label": "JavaScript Fundamentals Screen · page",
      "href": "https://www.mokabla.com/agent/en/c/cib/javascript-fundamentals-screen"
    }
  ],
  "notices": [
    {
      "severity": "info",
      "message": "This classification is final for the session: it came from a strong signal, not a guess. The human pages are not served to agents."
    },
    {
      "severity": "info",
      "message": "Unverified agents are read-only. Signed requests (Web Bot Auth) are the path to write access."
    }
  ],
  "meta": {
    "requestId": "ag_37e1fb50d0ee",
    "policyVersion": "mokabla-2026-11-03",
    "generatedAt": "2026-11-03T17:38:14.488Z",
    "jsonUrl": "https://www.mokabla.com/agent/en/c/cib/javascript-fundamentals-screen?format=json",
    "manifestUrl": "https://www.mokabla.com/.well-known/agentgate.json",
    "humanUrl": "https://www.mokabla.com/en/c/cib/javascript-fundamentals-screen",
    "humanClaimUrl": "https://www.mokabla.com/agent/_claim/human?to=%2Fen%2Fc%2Fcib%2Fjavascript-fundamentals-screen"
  }
}