79296939

Date: 2024-12-20 10:46:41
Score: 2.5
Natty:
Report link

Use IIFE

const parsedJSON = (() => {
  try {
    return JSON.parse(badJSON);
  } catch (error) {
    return {};
  }
})();
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: youyoumu