I\'m trying to learn JavaScript and I keep getting the error \"Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse\".
var ourRequest = n
You've simply misspelt resoponseText - It should be responseText. You get the error because JavaScript ends up calling JSON.parse("undefined").
resoponseText
responseText
JSON.parse("undefined")
You have a typo: you wrote ourRequest.resoponseText rather than ourRequest.responseText.
ourRequest.resoponseText
ourRequest.responseText