JSFiddle - React, Tailwind, and code Playground
JavaScript
// This is your Editor pane. Write your JavaScript here and
// use the command line to execute commands
function thisLine() {
try {
throw new Error();
} catch (e) {
const regex = /\d+:\d+/i;
const match = regex.exec(e.stack.split("\n")[2]);
return match[0];
}
}
console.log(thisLine());