DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

πŸ” RingCentral – Round 2: Implement `JSON.stringify()` from scratch

Q: Recreate JSON.stringify() β€” convert JS values to JSON strings.

What to cover:

  • Primitives: null, boolean, number, string.
  • Objects & arrays (recursive traversal).
  • Skip functions & undefined where appropriate.
  • Circular references β†’ throw TypeError.

πŸ’» Try it + solutions:

πŸ”— https://replit.com/@318097/Ring-Central-R2-Implement-JSONstringify#index.js

Top comments (0)