Question: hello i am trying to pass javascript var can anyone explain how to do it ..? 

```
<div id="res">
<script>
var url_string = window.location.href; //window.location.href
var url = new URL(url_string);
var c = url.searchParams.get("x");
console.log(c);
adUnit   = document.getElementById("res");
adUnit.innerHTML = '<ins ve-id="how to pass var c here..?"></ins>';
</script>
<script  src="//net.my.com/js.php"></script>

```

Answer: 
You can do it like below

```
adUnit.innerHTML = '<ins ve-id="' + c + '"></ins>';

```

In ES6 version

```
adUnit.innerHTML = `<ins ve-id="${c}"></ins>`;

```
You can use interpolate string.

So, do something like

adUnit.innerHTML = `<ins ve-id=4{c}></ins>`;