Demo entry 6663420



Submitted by anonymous on Nov 30, 2017 at 03:36
Language: JavaScript. Code size: 229 Bytes.

// Circular references are legal in javascript objects
var a = { b: null };
var b = { a: a };
a.b = b;

// But they are not allowed in JSON -
// this is missed by jshint but throws a TypeError at runtime

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).