{"json_modified": "2016-08-27T01:54:10.940010", "uuid": "2c16b891-a95a-441b-b2a9-1a8ba1c97c38", "title": "What went wrong? Troubleshooting JavaScript", "url": "/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong", "tags": ["Beginner", "Error", "Learn", "Article", "CodingScripting", "Tutorial", "JavaScript", "Debugging", "Developer Tools", "console.log", "beginner", "debugging"], "translations": [], "modified": "2016-08-27T01:54:10", "label": "What went wrong? Troubleshooting JavaScript", "localization_tags": [], "locale": "en-US", "id": 188548, "last_edit": "2016-08-27T01:54:07", "summary": "So there we have it, the basics of figuring out errors in simple JavaScript programs. It won't always be that simple to work out what's wrong in your code, but at least this will save you a few hours of sleep and allow you to progress a bit faster when things don't turn out right earlier onin your learning journey.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Types_of_error", "title": "Types of error"}, {"id": "An_erroneous_example", "title": "An erroneous example"}, {"id": "Fixing_syntax_errors", "title": "Fixing syntax errors"}, {"id": "Syntax_errors_round_two", "title": "Syntax errors round two"}, {"id": "Syntax_errors_round_three", "title": "Syntax errors round three"}, {"id": "A_logic_error", "title": "A logic error"}, {"id": "Working_through_the_logic", "title": "Working through the logic"}, {"id": "Other_common_errors", "title": "Other common errors"}, {"id": "SyntaxError_missing_before_statement", "title": "SyntaxError: missing ; before statement"}, {"id": "The_program_always_says_you've_won_regardless_of_the_guess_you_enter", "title": "The program always says you've won, regardless of the guess you enter"}, {"id": "SyntaxError_missing_)_after_argument_list", "title": "SyntaxError: missing ) after argument list"}, {"id": "SyntaxError_missing_after_property_id", "title": "SyntaxError: missing : after property id"}, {"id": "SyntaxError_missing_after_function_body", "title": "SyntaxError: missing } after function body"}, {"id": "SyntaxError_expected_expression_got_'string'_or_SyntaxError_unterminated_string_literal", "title": "SyntaxError: expected expression, got '"}, {"id": "Summary", "title": "Summary"}, {"id": "See_also", "title": "See also"}], "slug": "Learn/JavaScript/First_steps/What_went_wrong", "review_tags": []}