Compiler Error - Js Script Activity

hello i am facing such an error, what is the reason? The person I watch on youtube presses a key at the end of the code and the error disappears, what should I do?

regards!
Mert Samet