HELLO
world
(-) // Explicitly declare 'message' as a string // [!code ++]
(+) let message: string = "Hello World"; // [!code --]
console.log(message); // [!code focus]
// Type is inferred as string, no need for explicit annotation
let autoType = "This is a string too";
helloWorld()
// [!code highlight:2]
// You can also define a simple array of strings
const stringArray: string[] = ["Hello", "how", "are", "you"];
inline const numbers = [1, 2, 3]{:js} highlighting