Skip to content

Commit

Permalink
Merge pull request #5843 from 7R0N1X/main
Browse files Browse the repository at this point in the history
#10 - JavaScript
  • Loading branch information
kontroldev committed Aug 30, 2024
2 parents 716cec2 + b469a81 commit eec3849
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Roadmap/10 - EXCEPCIONES/javascript/7R0N1X.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let array = [1, 2, 3, 4, 5]

try {
console.log(array[6].toString())
} catch (error) {
console.error(`Error: ${error}`)
} finally {
console.log('Fin de ejecución')
}

console.log('El flujo del programa continua')

0 comments on commit eec3849

Please sign in to comment.