JavaScript JavaScript Numbers The Math Object JavaScript Numbers Review

In 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

One thing you can try is googling "get type of variable javascript".

Let me know if this helps!

Sanjeevan Premkumar
Sanjeevan Premkumar
10,470 Points

Use the operator that returns the type of the variable.

console.log( typeof totalStudents );

Hey Ryan,

console.log( parseInt( '7 days a week' ) );

When this code is run on console, it'll return 7.

That's not the quiz question he's asking about.