Jump to content

error on Learn JavaScript page?


kwyjibear
 Share

Recommended Posts

In the Learn JavaScript lessons, on the Throw page, it states that the command is...

throw(exception)

...but in the first example, the Throw command appears as...

throw "Err1"

Shouldn't the exception be in parentheses?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...