Skip to content

Commit 26e1257

Browse files
committed
#10 - JavaScript
1 parent 3668b28 commit 26e1257

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Excepciones
2+
3+
try
4+
{
5+
f()
6+
}
7+
catch(err)
8+
{
9+
console.error(err.name, ":", err.message);
10+
}
11+
finally
12+
{
13+
console.log("Se manejo correctamente");
14+
}
15+
16+
console.log("El programa no se detuvo");

0 commit comments

Comments
 (0)