1let counter = 120; // counter is a number
2console.log(typeof(counter)); // "number"
3
4counter = false; // counter is now a boolean
5console.log(typeof(counter)); // "boolean"
6
7counter = "Hi"; // counter is now a string
8console.log(typeof(counter)); // "string"Code language: JavaScript (javascript)