Need some help. My code reports errors, which IMHO are none. Preview/Output clearing itself after function finishes.
Hi everyone! I could need some help with validating my code. Because of the flood of errors I have rewritten the code. First of all, I have renamed all variables to self-explanatory names with camelCase. Then I've set initial values to all declared variables and created a function to initialize the global variables. Commented out all console.log() arguments which I used to debug the code. Put the code in various online validators to double check bugs and errors. Opened the code in different browsers and window modes (normal and private). And still it doesn't work as expected. Well, I think it's time for some other pair of eyes to take a closer look. Following issues so far: 1. console keeps clearing itself after user clicks on cancel 2. HTML content which was generated and created with .innerHTML method flushes after all functions finish 3. Several "undefined" variables and functions which should have some values e.g. line 118 reports undefined Many thanks https://code.sololearn.com/WU76YPfY4HOA/?ref=app