Im writing an if statement that allows to display a choice based on users input,
Im basically trying to say if something like if they pick 2-4 guests then allow the option.
This is what i've written:
if (userObj.guests = 2 || userObj.guests <=4 && userObj.dayDifference <=10 ) {
$('.motel_container').removeClass('disable')
}
How can i only allow the if statement to work if they pick 2 - 4 guests only.