Forum Discussion
ZacharyMehalick
2 years agoCommunity Member
Javascript scrollIntoView not working correctly
Hi so I'm trying to recreate this: https://www.youtube.com/watch?v=c_WjEe0qzUo&feature=youtu.be
I've changed the javascript to all be on one line but regardless it doesn't work correctly like it ...
NorahBerry
7 months agoCommunity Member
Open the browser's developer console (usually by pressing F12) and look for any error messages that might indicate issues with your JavaScript code.
These error messages can provide valuable clues about syntax errors, variable scope problems, or other issues preventing the code from working as expected.
Use browser developer tools to set breakpoints in your code and step through it line by line. This can help you see what values are being assigned to variables and how the code is executing.
Consider using a debugging library like console.log statements to print intermediate values and trace the script's execution flow to identify where things are going wrong.