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 trialSorin Chircu
45,432 PointsYou have a mistake in variable "minutesInSecond = 60 "
just grammatical mistake
2 Answers
Kevin Gates
15,053 PointsAh, found the quiz. Okay, so they're asking how do you declare the variables.
function secondsWorked(hours);
____ totalTime;
____ minutesInHour = 60;
____ minutesInSecond = 60;
totalTime = hours * minutesInHour * minutesInSecond;
}
console.log( secondsWorked(40) );
So you were learning about let and const.
So you need to think:
- Will "totalTime" ever change? If so, is that Let or Const?
- Will "minutesInHour " ever change? If so, is that Let or Const?
- Will "minutesInSecond " ever change? If so, is that Let or Const?
I just took the quiz and it works as expected.
Kevin Gates
15,053 PointsWhat is your question?