Loading homepage
Store numeric cells and evaluate live addition formulas with references, missing-cell defaults, and cycle detection.
Input: const sheet = new Spreadsheet(); sheet.set("A1", 3); sheet.set("B1", "=A1 + 2.5"); sheet.get("B1"); Output: 5.5
Input: sheet.set("A1", 10); sheet.get("B1"); sheet.clear("A1"); sheet.get("B1"); Output: 12.5 after editing A1, then 2.5 after clearing it.
Implement the exported spreadsheet class in index.js or index.ts. Tests cover the documented scope and edge cases.