javascript errror

0
hi  I have written java script codes but before running it throws error whay i dont know. even though  i delete ordeanable it it is coming again  can someone  give support?  
asked
1 answers
3

Hi Huseyin,

 

In the code snippet that you posted above it looks like you never put any executable code within the main function between the //Begin user code  //End user code tags.  It looks like you do have some code within the //Begin extra code //End extra code tags.

Only the javascript within the main function will be executed when the function is called.  You need to delete the throw error command within the main function and then either move the javascript you wrote inside the main function(//Begin User Code section) or if you wrote a function, call that function from the main function.

 

 

This is all specified in the default comment at the top of the javascript function when it is created.

 

Hope this helps

Danny

answered