A check-in record has text, a number, and a true/false flag. Compare the types before formatting a summary.
A string holds text and needs quotes. A number can participate in arithmetic without conversion. A boolean is one of the two unquoted values true and false; it records a yes/no fact. "true" would be a string instead.
typeof value produces a text label such as "number". The starter prints this label beside each value, so 14 and "14" are visibly different even though their digits look the same. Keep the supplied logs and replace only the placeholder values for the first three tasks.
For the final summary, insert each value and its typeof result into a backtick string. The colon and | separators are ordinary text inside that string.
const petName = "Nori";
const petAge = 2;
const isAdopted = false;
console.log(typeof petName, typeof petAge, typeof isAdopted);
Edit script.js, Run to inspect each checkpoint, then Submit to check the completed tasks. The supplied probes do not need rewriting.
studentName to "Mia"; the provided probe will log name: Mia (string).studentAge to 14; the provided probe will log age: 14 (number).isStudent to true; the provided probe will log student: true (boolean).Mia:string | 14:number | true:boolean on its own line.Use a string for the name, a number for the age, and a boolean for the student flag.
Use typeof value to get the type label for each variable.