The error message has a line number in it. Start by looking at that line, and compare it to example code around the internet.
After doing that, if you still can’t figure it out, share the updated code here (along with the entire error message) and we can help you. but please use code tags as described here to make your code more readable.