Skip to content
Advertisement

Tag: promise

how to access specific elements from a promise

in php I return to javascript the following: in my js file I have: this writes out to the console: how do I access the value ‘FOUND’ associated with the key ’email’? I’ve tried response[’email’], response.email and response[0][’email’] Answer The title is very misleading because the problem is completely unrelated to promises. The backend doesn’t provide pure JSON but HTML

Advertisement