title: SyntaxError: invalid regular expression flag ajax, Javascript
body: <p>This is my controller,</p>
  
  <pre><code>public ActionResult ReturnMethodTest(int id) 
  {
      string name = "John";
      return Json( new {data=name});       
  }
  </code></pre>
  
  <p>I am trying to get data from this controller by using code below but I am getting <img src="https://i.stack.imgur.com/RrEoK.png" alt="Syntax error"> . </p>
  
  <p>Can you please tell me what am I doing wrong?</p>
  
  <pre><code>$.ajax({
          url: @Url.Action("ReturnMethodTest", "HomeController"),
          data: {
              id: 5,
          },
          success: function (data) {
              console.log(data);
          }
      });
  </code></pre>