I just wanted to check, I am trying to add a window width condition in my function, Is this the best way to do it? So this is similar to a media query, in the sense of Min width and Max width
if ($(window).width() <= 440 && $(window).width() <=768) {
// Do something
}