type PlayerArray = Array<string|number>; let players : PlayerArray = ["Altuve", "Corerra", "Bregman"]; let player_numbers : PlayerArray = [25, 3, 2]; console.log(players); console.log(player_numbers); var names : string[]|string; names = ["Jordan Hudgens", "Tiffany Hudgens"]; console.log(names); names = "Kristine Hudgens"; console.log(names);
To embed this project on your website, copy the following code and paste it into your website's HTML: