How to get user id from user name (noob)

uhm, like i said kinda noob in js ,but i would say that i am not connecting properly in first place then i don’t get the data variable with the response ?

and firefox shows me this :

fox