function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
This user can be DeletedThis user can be Deleted 

Error on line 23 - Expecting a right parenthesis, found '0'

Hello, 

I cannot find the  solution to the above mentioned issue, could you possibly have a look on line 23 and let me know you can see the flaw in my code?
User-added image

The error given by the Developer Console is: 
User-added image
Can any one spot what's wrong with line 23?
Thank you very much.
Best Answer chosen by This user can be Deleted
Gokula KrishnanGokula Krishnan
Hi Ted495,

Line 23 is right, try below..?

I suspect, you need to close the "}" after the line 23 instead of line 17

Thanks,

 

All Answers

Gokula KrishnanGokula Krishnan
Hi Ted495,

Line 23 is right, try below..?

I suspect, you need to close the "}" after the line 23 instead of line 17

Thanks,

 
This was selected as the best answer
This user can be DeletedThis user can be Deleted
I think you are right, Gokula. Thank you very much.
(the code is now displaying a new error... :-) but that's a new question.