How to pass a variable to the attribute of a script, example:
<script>
token = "ablsicn05101dad10561" //exemplo. Esse token eu pego pela URL
</script>
<script
type="text/javascript"
src="http://.."
data-token=token>
</script>
The problem is that I can not pass the value of the variable token, what happens is that the data-token receives the name of the variable as if it were string, not the value of it.