Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

can i use greater than / less than in Switch JavaScript

switch (true) {
    case value < 4:
    case value > 4:
    default: // value is 4
}
Source by discuss.codecademy.com #
 
PREVIOUS NEXT
Tagged: #greater #Switch #JavaScript
ADD COMMENT
Topic
Name
6+4 =