Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript multiple cases

switch (varName)
{
   case "afshin":
   case "saeed":
   case "larry": 
       alert('Hey');
       break;

   default: 
       alert('Default case');
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: display:flex 
Javascript :: javascript add item by index 
Javascript :: javascript this inside function 
Javascript :: export socket io connection in react 
Javascript :: loop in javascript 
Javascript :: Firebase: Error (auth/invalid-api-key). 
Javascript :: order by type 
Javascript :: javascript add to undefined 
Javascript :: last row bold datatable 
Javascript :: json returning object object 
Javascript :: ask for expo token and save to firebase 
Javascript :: mdn .includes 
Javascript :: basic react code 
Javascript :: javascript prototype example 
Javascript :: reset regex javascript 
Javascript :: Material-ui clock icon 
Javascript :: Apollo graphql fragment 
Javascript :: alpinejs examples stackoverflow 
Javascript :: gsheet formula get last item in column 
Javascript :: json schema e.g. 
Javascript :: string filter javascript 
Javascript :: Highlight current nav link in react 
Javascript :: obfuscate js code 
Javascript :: declare array in javascript 
Javascript :: Century From Year 
Javascript :: Find largest number from array by function in javascript 
Javascript :: javascript create object from key value pairs 
Javascript :: javascript how do I measure the time of the loop 
Javascript :: json date serialize 
Javascript :: js addeventlistener keyup not working on phone 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =