When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
( !! Sometimes the preformatted text button hides behind the settings gear symbol. )
And since error messages are an important language feature telling you what’s wrong and sometimes even how to make it better you should always include the complete error message if there is one - formatted as code as well, please.