Hi everyone! I recently did a Take Home Assignment for a company, where one of the tasks was to make AJAX requests to display results on the same page instead of page navigation. I was able to do it, but I had a question about it that I wanted to ask.
The application was in Ruby, with Frontend in JS + HAML. They had included jquery also in the application. In their task description, they said I was to alter the JS code to do the AJAX requests. But my struggle was with understanding since there are ways to do AJAX in JS, jquery, Ruby, and Ruby w/ HAML, what is the right way to go about this? My solution was just JS and nothing else. But in this case, should I have done the AJAX with jquery instead? Or does it not matter since it worked, and they told me to do it in the JS file?
I apologize in advance if the question is confusing.