How to use Or operator in javascript : <p>I am trying to use an if statement and the or || operator to test if the value of the select box option for type of room is either single King, single Double Queen, or single two twins and then execute some code. I keep getting the message "uncaught syntax error unidentified token ||" right where the || operator is in the if statement.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var hotel = {
	name:"Benson hotel",
	rooms:500,
	jsuites:10,
	ssuites:10,
	booked:100,
	checkAvailability: function(){
	return this.rooms - this.booked;
}
      
};

hotel.name = "Bonton";

var elName = document.getElementById("hotelN");
elName.textContent = hotel.name;


 function checkin(){
 	var nRooms = document.getElementById("numRooms").value * 1;
 	var tRoom = document.getElementById("typeRoom");
 	if (tRoom.value = "singleK")||(tRoom.value ="singleQ")||(tRoom.value = "singleT") { //*I am getting the following message about above line of code in the console. "uncaught syntax error unidentified token ||" Obviously the above if statement with || operator is not correct//
 		
 		hotel.booked = numRooms + hotel.booked;
 	
 		if hotel.checkAvailability() &lt; 0 {
 			var rAvail = nRooms + (hotel.checkAvailability());
 			if rAvail &lt;= 0 {
 				var noSay = document.getElementById("say");
 				noSay.textContent = "We have no rooms available";
            }
          
             else {
             	var yesSay = document.getElementById("say");
            	yesSay.textContent = "We have" + rAvail + "rooms available";
         
 		       }

 		    }</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
	   &lt;div id="wrapper"&gt;
		&lt;div id="heading"&gt;
			&lt;h1 id="hotelN"&gt;&lt;/h1&gt;
        /div&gt;
		&lt;div id="main"&gt;
			&lt;form id="myForm"&gt;
			&lt;fieldset&gt;
			&lt;legend&gt;Book a Room&lt;/legend&gt;&lt;p&gt;
			&lt;label for="rm1"&gt;Number of Rooms:&lt;/label&gt;	
            &lt;input type="number" max="10" min="1" value="1"name="rm" id="numRooms"&gt;
            Type of room: &lt;select type="text" maxlength="14" id="typeRoom"&gt;
  &lt;option value="singleK"&gt;Single King Bed&lt;/option&gt;
  &lt;option value="singleQ"&gt;Single Queen Bed&lt;/option&gt;
  &lt;option value="singleT"&gt;Single Two Twins&lt;/option&gt;
  &lt;option value="jsuite"&gt;Junior One Bedroom Suite&lt;/option&gt;
  &lt;option value="srsuite"&gt;Senior Two Bedroom Suite&lt;/option&gt;
&lt;/select&gt;&lt;/p&gt;
            Occupancy:&lt;select type="text"&gt;
            &lt;option&gt;One adult&lt;/option&gt;
            &lt;option&gt;Two adults&lt;/option&gt;
            &lt;option&gt;One adult and Child&lt;/option&gt;

            &lt;/select&gt;
            
            Check In Date: &lt;input type="date"name="checkin" id="cInDate"&gt;
            Check Out Date: &lt;input type="date" name="checkout" id="cOutDate"&gt;          
            &lt;button  type="button" onclick="checkin()"&gt;Submit&lt;/button&gt;
&lt;/fieldset&gt;
			&lt;/form&gt;
			&lt;H1 class="al"&gt;Hotel Room Availability&lt;/H1&gt;
		    &lt;p class="al" &gt;&lt;span id="say"&gt;&lt;/span&gt; and check out on July &lt;span  id="dateOut"&gt;&lt;/span&gt;&lt;/p&gt;
			
            
		
		&lt;p id="first"&gt;jjjj&lt;/p&gt;
        
		&lt;p id="second"&gt;&lt;/p&gt;

		&lt;/div&gt;	
&lt;/div&gt;</code></pre>
</div>
</div>
</p>
