Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ryan Blakeney
8,870 PointsJavascript Question needs correcting
Answers should be true or false. right?
claudiacuevas
9,792 PointsHave you tried using the console to test it? Like William said, each question is shuffled when you retry the quiz questions. Any clarity on your concern or question can assist us in helping you.
Ryan Blakeney
8,870 PointsA JavaScript function can return several values at once. For example: function myFunction() { return 'Mon', 'Tues', 'Wed', 'Thurs', 'Fri'; } var days = myFunction();
Ryan Blakeney
8,870 PointsIm sorry i should have been more clear.
The answers to that question are yes or no, however the question isn't a question. Its a statement so it cant be yes or no, it must be true or false. Its small and likely goes unnoticed but i noticed it because i didn't understand the question because of the answers so I thought i would post it in case the TreeHouse instructors wanted to change it based on feedback.
I am realizing now that the quizzes ask for feedback afterwards but I'm already committed so here it is!
2 Answers
William Li
Courses Plus Student 26,868 PointsIt's false, you can't do that in JavaScript, if you really wanna return multiple values, you have to wrap them into an Array.
Ryan Blakeney
8,870 Pointsright, the answers are either yes or no
William Li
Courses Plus Student 26,868 PointsThe quiz questions will always shuffled everytime you visit that link, so you may need to be more specify on which question you're referring to.
John Magee
Courses Plus Student 9,058 PointsJohn Magee
Courses Plus Student 9,058 PointsYes or No work as valid options as well.