JS Types
Values have types such as string, number, and boolean. The type affects which operations make sense.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
console.log(typeof "Workshop");
console.log(typeof 12);
console.log(typeof true);
What happens
The types are string, number, and boolean.