So I want to use this example without jquery or other libraries.
I have this code
let xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {...}
As you can see it uses the old style function()
How do I change this to an arrow function style one?
let xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = () => {...}
This doesn't work. Am I close or am I looking at this completely wrong? Again I don't want to use libraries for this exercise.