Created
June 20, 2023 10:05
-
-
Save alexsoyes/8408eb3dab552c54293ed84f62e77075 to your computer and use it in GitHub Desktop.
Exemple TypeScript : Matrice
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
const matrix: number[][] = [ | |
[1, 2, 3], | |
[4, 5, 6], | |
[7, 8, 9] | |
]; | |
console.log(matrix[1][2]); // Output: 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment