let newVariable = 'Playing around with typeof.'; console.log(typeof newVariable); // Prints: string
In my head, I would have thought the following syntax would work, but it doesn’t:
.length operator, which returns the length of a string, and can be appended to the name of the variable you are requesting information about. Can anyone comment on why this is so?