UNPKG
castelog
Version:
latest (0.0.1)
0.0.1
Programación JavaScript en castellano.
github.com/allnulled/castelog
allnulled/castelog
castelog
/
test
/
scripts_de_sintaxis
/
400.n.sentencia_de_lanzacion.js
5 lines
(4 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
let
x =
1
;
try
{
throw
"un error"
;}
catch
(error) { x =
2
;}
if
(!(x ===
2
))
throw
new
Error
(
"Error en fichero [-] en posición [105-137=8:3-10:31] cuando: "
+
"Compruebo que x es igual que 2"
);