Skip to content

Commit b469a81

Browse files
committed
#10 - JavaScript
1 parent 1ee9fc6 commit b469a81

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
let array = [1, 2, 3, 4, 5]
2+
3+
try {
4+
console.log(array[6].toString())
5+
} catch (error) {
6+
console.error(`Error: ${error}`)
7+
} finally {
8+
console.log('Fin de ejecución')
9+
}
10+
11+
console.log('El flujo del programa continua')

0 commit comments

Comments
 (0)