Simple variable with obvious type:
message: Hello (string)
Function with explicit parameter types:
John Doe
Function with complex return type:
{ count: 3, items: [ 'apple', 'banana', 'orange' ] }
Empty array (in TypeScript would need annotation):
emptyArray: (object)
Empty object (in TypeScript would need annotation):
configOptions: {} (object)
Type assertion example (TypeScript only):
const canvas = document.getElementById("main-canvas") as HTMLCanvasElement;
In TypeScript, this tells the compiler that the element is specifically a canvas element