DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
throw new error(
try
{
throw
new
Error
(
'Whoops!'
)
}
catch
(
e
)
{
console
.
error
(
e
.
name
+
': '
+
e
.
message
)
}
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#throw
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit