Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, May 11, 2017

FreeCodeCamp sequentialSizes(val) Sample Solution


function sequentialSizes(val) {
  var answer = "";
  // Only change code below this line
  switch(val){
    case 1:
    case 2:
    case 3:
      answer = "Low";
      break;
    case 4:
    case 5:
    case 6:
      answer = "Mid";
      break;
    case 7:
    case 8:
    case 9:
      answer = "High";
      break;
  }
  // Only change code above this line
  return answer;
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts