```javascript function myTest(val) { if (val<=12) {// Change this line return "Smaller Than or Equal to 12"; } if (val<=24) {// Change this line return "Smaller Than or Equal to 24"; } return "25 or More"; } // Change this value to test myTest(10); ```
http://www.o2fo.com/chun5060/chun5060-htzm24b6.html```javascript function myTest(val) { // Only change code below this line if (val<=50&&val>=25) { return "Yes"; } // Only change code above this line return "No"; } // Change this value to test myTest(10); ```
http://www.o2fo.com/chun5060/chun5060-s2x524b7.html```javascript function myTest(val) { // Only change code below this line if (val<10||val>20) { return "Outside"; } // Only change code above this line return "Inside"; } // Change this value to test myTest(15); ```
http://www.o2fo.com/chun5060/chun5060-ch7p24b8.html```javascript function myTest(val) { var result = ""; // Only change code below this line if (val > 5) { result = "Bigger than 5"; } else { result = "5 or Smaller"; } // Only change code above this line return result; } // Change this value to test myTest(4); ```
http://www.o2fo.com/chun5060/chun5060-fugd24b9.html```javascript function myTest(val) { if (val > 10) { return "Greater than 10"; } else if (val < 5) { return "Smaller than 5"; } else{ return "Between 5 and 10"; } } // Change this value to test myTest(7); ```
http://www.o2fo.com/chun5060/chun5060-ehp824ba.html```javascript function myTest(val) { if (val < 5) { return "Less than 5"; } else if (val < 10) { return "Less than 10"; } else { return "Greater than or equal to 10"; } } // Change this value to test myTest(7); ```
http://www.o2fo.com/chun5060/chun5060-uezn24bb.html```javascript function myTest(num) { // Only change code below this line if (num < 5) { return "Tiny"; } else if (num <10) { return "Small"; } else if (num < 15) { return "Medium"; }else if (num < 20) { return "Large"; } else { return "Huge"; } return "Change Me"; // Only change code abo...
http://www.o2fo.com/chun5060/chun5060-381724bc.html```javascript function golfScore(par, strokes) { // Only change code below this line if(strokes==1){ return "Hole-in-one!"; }else if(strokes<= par - 2){ return "Eagle"; }else if(strokes==par - 1){ return "Birdie"; }else if(strokes==par){ return "Par"; }else if(strokes==par + 1){ return "Bogey"; }...
http://www.o2fo.com/chun5060/chun5060-blf824bd.html```javascript function myTest(val) { var answer = ""; // Only change code below this line switch (val) { case 1: answer = "alpha"; break; case 2: answer = "beta"; break; case 3: answer = "gamma"; break; case 4: answer = "delta"; } // Only change code above this line return answer; } // Change this v...
http://www.o2fo.com/chun5060/chun5060-2v1e24be.html```javascript function myTest(val) { var answer = ""; // Only change code below this line switch (val) { case "a": answer = "apple"; break; case "b": answer = "bird"; break; case "c": answer = "cat"; break; default: answer = "stuff"; } // Only change code above this line return answer; } // Change t...
http://www.o2fo.com/chun5060/chun5060-vqwt24bf.html抱歉,暫時沒有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的教程
w3cschool 建議您:
```javascript function myTest(val) { if (val<=12) {// Change this line return "Smaller Than or Equal to 12"; } if (val<=24) {// Change this line return "Smaller Than or Equal to 24"; } return "25 or More"; } // Change this value to test myTest(10); ```
http://www.o2fo.com/chun5060/chun5060-htzm24b6.html```javascript function myTest(val) { // Only change code below this line if (val<=50&&val>=25) { return "Yes"; } // Only change code above this line return "No"; } // Change this value to test myTest(10); ```
http://www.o2fo.com/chun5060/chun5060-s2x524b7.html```javascript function myTest(val) { // Only change code below this line if (val<10||val>20) { return "Outside"; } // Only change code above this line return "Inside"; } // Change this value to test myTest(15); ```
http://www.o2fo.com/chun5060/chun5060-ch7p24b8.html```javascript function myTest(val) { var result = ""; // Only change code below this line if (val > 5) { result = "Bigger than 5"; } else { result = "5 or Smaller"; } // Only change code above this line return result; } // Change this value to test myTest(4); ```
http://www.o2fo.com/chun5060/chun5060-fugd24b9.html```javascript function myTest(val) { if (val > 10) { return "Greater than 10"; } else if (val < 5) { return "Smaller than 5"; } else{ return "Between 5 and 10"; } } // Change this value to test myTest(7); ```
http://www.o2fo.com/chun5060/chun5060-ehp824ba.html```javascript function myTest(val) { if (val < 5) { return "Less than 5"; } else if (val < 10) { return "Less than 10"; } else { return "Greater than or equal to 10"; } } // Change this value to test myTest(7); ```
http://www.o2fo.com/chun5060/chun5060-uezn24bb.html```javascript function myTest(num) { // Only change code below this line if (num < 5) { return "Tiny"; } else if (num <10) { return "Small"; } else if (num < 15) { return "Medium"; }else if (num < 20) { return "Large"; } else { return "Huge"; } return "Change Me"; // Only change code abo...
http://www.o2fo.com/chun5060/chun5060-381724bc.html```javascript function golfScore(par, strokes) { // Only change code below this line if(strokes==1){ return "Hole-in-one!"; }else if(strokes<= par - 2){ return "Eagle"; }else if(strokes==par - 1){ return "Birdie"; }else if(strokes==par){ return "Par"; }else if(strokes==par + 1){ return "Bogey"; }...
http://www.o2fo.com/chun5060/chun5060-blf824bd.html```javascript function myTest(val) { var answer = ""; // Only change code below this line switch (val) { case 1: answer = "alpha"; break; case 2: answer = "beta"; break; case 3: answer = "gamma"; break; case 4: answer = "delta"; } // Only change code above this line return answer; } // Change this v...
http://www.o2fo.com/chun5060/chun5060-2v1e24be.html```javascript function myTest(val) { var answer = ""; // Only change code below this line switch (val) { case "a": answer = "apple"; break; case "b": answer = "bird"; break; case "c": answer = "cat"; break; default: answer = "stuff"; } // Only change code above this line return answer; } // Change t...
http://www.o2fo.com/chun5060/chun5060-vqwt24bf.html抱歉,暫時沒有相關(guān)的文章
w3cschool 建議您: