JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

var code = '"\u2028\u2029"';
JSON.parse(code); // evaluates to "\u2028\u2029" in all engines
console.log(eval(code)); // throws a SyntaxError in old engines