title: Add JavaScript Reference in asp.net core
body: <p>Below is my Problem :    </p>
  
  <p><a href="https://i.stack.imgur.com/gqy24.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gqy24.png" alt="enter image description here"></a>    </p>
  
  <p>GlobalJs.js is my custome JavaScript file and has only one line code alert(1).    </p>
  
  <p><a href="https://i.stack.imgur.com/Jp2Ee.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Jp2Ee.png" alt="enter image description here"></a></p>
  
  <p>But I am unable to add its reference in _Layout.cshtml.           </p>
  
  <p><a href="https://i.stack.imgur.com/Jp2Ee.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wtzRZ.png" alt="enter image description here"></a>    </p>
  
  <p>src="../JavaScript/GlobalJs.js" or src="~/JavaScript/GlobalJs.js" none is working for me. What is the problem actually? Please anyone help me. Am I missing something?</p>
  
  <p>Thanks in advance. </p>