title: How to get filename and line-number in javascript dynamically
body: <p>In <a href="https://swift.org/" rel="nofollow noreferrer">Swift</a>, we can use <a href="https://stackoverflow.com/a/24103478/4370279">Special literals</a> to get fileName, methodName, lineNumber etc dynamically.</p>
  
  <p><a href="https://i.stack.imgur.com/LtKN4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LtKN4.png" alt="enter image description here"></a></p>
  
  <p><strong>Is there similar functionality available in javascript to get fileName / methodName / lineNumber etc dynamically ?</strong></p>