Question: This is my html code. Here I declared one variable.

```
<script src="index.js">
    var str = {{:stringVar:}};
</script>

```

This is my JavaScript file content. Here if my condition satisfies my HTML file variable have to get my javascript file variable and it must be replaced.

```
var hello='gettingvalue from browser'
if(hello ='master'){
 var changestr ='new asp key for mas';
 }
 else{
 var changestr ='new asp key for dev'
 }

```

How can I get my HTML file variable into js file?

Answer: 
You mean this?:

`<option key={planet.id} value={planet.id} >{planet.id}-{planet.name}</option>`
Try this

```
<option key={planet.id} value={planet.id}>{planet.name}</option>

```