Skip to content

Commit eec3849

Browse files
authored
Merge pull request mouredev#5843 from 7R0N1X/main
#10 - JavaScript
2 parents 716cec2 + b469a81 commit eec3849

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)