JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = /a/;
var b = /a/;
console.log(a.toString() === b.toString());