Created
November 13, 2024 15:30
-
-
Save dontpaniclabsgists/4352278abcac65ee63111455650ce4e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sports: string[] = ['Volleyball', 'Football', 'Basketball', 'Soccer']; | |
sports[1] = 'Tennis'; | |
// Replaces 'Football' with 'Tennis' | |
console.log(sports); | |
// Output: ['Volleyball', 'Tennis', 'Basketball', 'Soccer'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment