I fill shame to ask this silly question but anyway I get this erorr:

```
Uncaught SyntaxError: Unexpected identifier

```

Any time that I add this ref:

```
 <script src="../Scripts/ddd.js"></script> 

```

to index.cshtml page.

Here is index.cshtml page: 

```
<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    <script src="../Scripts/ddd.js"></script>
</head>
<body>
    <div>
        Home      
    </div>   
</body>
</html>

```

And here is ddd.js file:

```
(function () {
    alert("ddd")
}());

```

**UPDATE**

I use asp.net core 2.2

Any idea why I get the error above?