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 trialRyan Collins
1,823 PointsIn the code below, use the operator that returns the type of the variable totalStudents:
In the code below, use the operator that returns the type of the variable totalStudents:
3 Answers
Sanjeevan Premkumar
10,950 PointsUse the operator that returns the type of the variable.
console.log( typeof totalStudents );
Adam N
70,280 PointsOne thing you can try is googling "get type of variable javascript".
Let me know if this helps!
Rabin Gharti Magar
Front End Web Development Techdegree Graduate 20,928 PointsHey Ryan,
console.log( parseInt( '7 days a week' ) );
When this code is run on console, it'll return 7.
Adam N
70,280 PointsThat's not the quiz question he's asking about.