Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. {
  2. "_id" : "NYJ-YeqK",
  3. "title" : "Pre-Assessment [Food]",
  4. "description" : "Use basic control structures (if/else statements) to affect the output of your code.",
  5. "start" : "//modify the function below to output a food preference\n//if the 'food' being passed into your function is pizza, return the output 'i love pizza'. If food is 'hotpockets', return 'hot pockets woo', and if it's anything else, return 'i have bad taste in foods'\n\n\nvar myFoodPreference = function(food) {\n //code goes here\n return output;\n}",
  6. "tests" : [
  7. {
  8. "_out" : "i love pizza",
  9. "invoke" : {
  10. "params" : [
  11. "pizza"
  12. ],
  13. "func" : "myFoodPreference"
  14. }
  15. },
  16. {
  17. "_out" : "hot pockets woo",
  18. "invoke" : {
  19. "params" : [
  20. "hotpockets"
  21. ],
  22. "func" : "myFoodPreference"
  23. }
  24. },
  25. {
  26. "_out" : "i have bad taste in foods",
  27. "invoke" : {
  28. "params" : [
  29. "hamburgers"
  30. ],
  31. "func" : "myFoodPreference"
  32. }
  33. }
  34. ]
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement