JavaScript AJAX Basics (retiring) AJAX Concepts A Simple AJAX Example

documnet is not defined

It says the document is not defined.

Uncaught ReferenceError: documnet is not defined at XMLHttpRequest.xhr.onreadystatechange ((index):12) xhr.onreadystatechange @ (index):12 XMLHttpRequest.send (async) (anonymous) @ (index):16

1 Answer

Steven Parker
Steven Parker
170,403 Points

It looks like just a spelling error, you wrote "documnet" instead of "document".