You could write a method that performs the fading and reuse that, sure. But sometimes this is easier - especially considering you can control the easing in this specific case.
You clearly missed the part in RichW's post talking about browser compatibility. I use JQuery still because I still have to support older IE browsers. document.querySelector() doesn't work there so I have to use JQuery to do the selecting.
Another example is Promises. I can't use ES6 Promises because I have to support older browsers and JQuery provides me with this functionality that works in those older environments.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It depends on the situation. For example:
$(el).fadeOut(300);
You could write a method that performs the fading and reuse that, sure. But sometimes this is easier - especially considering you can control the easing in this specific case.
You clearly missed the part in RichW's post talking about browser compatibility. I use JQuery still because I still have to support older IE browsers. document.querySelector() doesn't work there so I have to use JQuery to do the selecting.
Another example is Promises. I can't use ES6 Promises because I have to support older browsers and JQuery provides me with this functionality that works in those older environments.