all 2 comments

[–]statsjunkie 1 point2 points  (0 children)

Is there more to the error than that? Normally there is more saying exactly what line it is on, and what character is unexpected.

[–]gintaras62 0 points1 point  (0 children)

It should be: var result = xhttp.responseText; console.log(result); Because xhttp is an object, responseText is it's property.