Foundations

Label Value Types

Label Value Types

typeof tells you the type of a value. Store each type label in its own variable before logging it.

Your task: Three values are provided. Create nameType, priceType, and availableType by using typeof on the matching value. Log all three type labels.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Label Value Types

typeof tells you the type of a value. Store each type label in its own variable before logging it.

Your task: Three values are provided. Create nameType, priceType, and availableType by using typeof on the matching value. Log all three type labels.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Console

Run code to see output.