// Outputs RegExp flags in alphabetical order console.log(/foo/ig.flags); // Expected output: "gi" console.log(/bar/myu.flags); // Expected output: "muy"