I am new, new to JavaScript and I have to complete this pre -work section for my coding boot camp I am enrolled in. In order for me not to get dropped form the class I have to complete these projects. I keep running into problems such as, ‘undefined error codes’, I am not sure how to remedy these errors or where even to start.
Another problem, my one of my JavaScript files is not functioning at all no matter what code I use. Is the file damaged, should I delete and start over?
I am new, new. No idea where to start to troubleshoot.
What are itemName.value, itemAmount.value supposed to contain?
If you console.log({itemName}, {itemAmount}) do they contain a value property?
If you console.log(typeof itemName.value, typeof itemAmount.textContent) what do you get?
What is the result of ${itemName.value} - ${itemAmount.value} supposed to be?
Besides logging to the console, i would strongly suggest learning to use the debugger and stepping through code, observing values, logical conditions, the execution flow etc.