Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Inspect a Value Type

The typeof operator tells you the type of a value. For text, it returns the string "string".

Example

const city = "Stockholm"; console.log(typeof city);

This displays string because city stores text.

Your task

Use typeof to set valueType from message. The console should display Type: string.