The API is returning me a token. I get this value in my html in a div with the id token. So I create a variable in my javascript to capture the value of this div, ie
var variavel = document.querySelector("#token");
And when I try to print to the console it returns like this:
token value I tried with the .value at the end and it returns me undefined in console.log What do I have to do to get the value of the token back? Grateful to whom to respond!