const inputField = document.querySelector(’#input’);
So that the saved value is taken like this:
const wordQuery = inputField.value;
While in the same course, during the Wanderlust project, it is done like this:
const input = (’#city’);
const city = $input.val();
I imagine it must be indifferent to use one way or another, but why in Wanderlust do they use that syntax? What is the difference? What benefit does one way have over the other?
I would appreciate the clarification.