0

Difference between ajax and JavaScript?

Ajax is made to do stuff without reloading the page correct? Isn't that kind of what JavaScript does. For example a javascript button event doesn't reload the page. Neither does ajax. So what is the difference and should i prefer one over the other.

16th Apr 2018, 12:13 AM
Someone Else
Someone Else - avatar
1 Respuesta
+ 4
Yes, JS does that. The difference is that AJAX was designed to make calls to the server and obtain information without needing to reload the page.
16th Apr 2018, 12:36 AM
Mickel
Mickel - avatar