"," expected error

Brand new to the Zap system, trying out a couple of things to decide if I want to continue. This error is popping up but I can’t see what I’m supposed to fix. It would be great if it highlighted where the error is occurring in the code. Unless the tiny red squiggly at line 19 is it. Not sure why it would need a comma there though.

Thanks

Zap%20error

Hey there Steven,

You just need to put a round bracket after the curly brackets as it’s not closed after the first on in line 6.
Also You’re missing a semi-colon too it comes after the round brackets.

Thanks
Ayushya

2 Likes

Hi There! You just have to close the first parentheses that you opened. And dont forget to write the semicolon too. Your code should be like this.:

parent.on(“show”, ()=> {
/*
YOUR CODE
*/
});

3 Likes