Notes on debugging
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong
There are 2 main types of errors you going to come across, syntax and logic errors.
Syntax errors are spelling errors within your code.
Logic errors are where syntax is actually correct but the code isnt what you intended it to be. This mean the program runs succesfully but gives incorrect results.
There are other common errors that youll come across in your code.
SyntaxError: missing; before statment- This basically means you are missing a semicolon at the end of one of your codes.
SyntaxError: missing parathesis after arguement list- This mostly means you are missing a closing parenthesis at the end of a function/method call.
SyntaxError: missing : after property id- This error usually relates to an incorrectly formed JavaScript object, but in this case we managed to get it by changing
Syntax: missing curly braces after function body: it generally means that you’ve missed one of your curly braces from a function or conditional structure
Syntax Error: expected expression, got ‘string’ or SyntaxError: unterminated string literal-These errors generally mean that you’ve left off a string value’s opening or closing quote mark.
Every modern web browser includes a powerful suite of developer tools. These tools do a range of things, from inspecting currently-loaded HTML, CSS and JavaScript to showing which assets the page has requested and how long they took to load.
I want to know more about using dev tools and how to use them. I want to learn more about how to resolve logic error issues.