Does JavaScript have a mechanism for determining the line number of the currently executing statement (and if so, what is it)?
You can use:
function test(){ console.trace(); } test();