const lessons = 10;
console.log(typeof lessons);typeof inspects the numeric value without changing it.
LESSON 07 OF 50
Use typeof to observe a variable type.
The typeof operator returns a string describing the operand type. For an ordinary numeric value, the result is “number”.
const lessons = 10;
console.log(typeof lessons);typeof inspects the numeric value without changing it.
const lessons = 10;
console.log('number');The text only matches by accident; the exercise requires the operator that determines the type.
Declare lessons with 10 and print the result of typeof lessons.
Run the code to see the result.The output is produced by typeof applied to the declared value, not by hard-coded text.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.