but the thing is is that i dont know how to fix codes for javascript

That's okay! Understanding coding can be challenging at first, but with practice and dedication, you can improve your skills. Here are some tips to help you fix JavaScript codes:

1. Start by understanding the error message: When you encounter an error in your code, read the error message carefully to understand what the issue is. This will help you identify where the problem lies and how to fix it.

2. Use a code editor with syntax highlighting: Using a code editor that highlights syntax errors can make it easier to spot mistakes in your code. Look for red underlines or error messages that indicate where the issue might be.

3. Break down the code into smaller parts: If you're having trouble figuring out a complex piece of code, try breaking it down into smaller sections. This will make it easier to identify the specific line or block of code causing the issue.

4. Utilize online resources and forums: There are many online resources, tutorials, and forums available to help you troubleshoot and fix coding issues. Websites like Stack Overflow and W3Schools are great places to get help and learn from more experienced developers.

5. Practice, practice, practice: The more you practice writing and debugging code, the better you'll get at it. Don't get discouraged by errors – use them as learning opportunities to improve your skills.

Remember, everyone struggles with coding at some point, and it's completely normal to encounter challenges. Keep practicing and seeking help when needed, and you'll become more comfortable with fixing JavaScript codes over time.