Like we can access a variable in the JS part like `"{{vaiable_name}}"`. How can we update the value of `variable_name` inside the javascript?

Let's say code will look like this,

```
{% if variable_name %}
 <p> Condition is true </p>
{% endif %}

```