8 kyu
Grasshopper - Object syntax debug
5,433danleavitt0
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
JS update to Node 18
Approved by someone
Great kata! Simple, but informative
isn't it better practice to define object with const instead of var?
terrible kata.
Would anyone actually define an object with so many layers using this approach???
Syntax correction. Not fun in Notepad.
This comment has been hidden.
Welcome to codewars! Just tested the kata myself. They seem to work fine, although "Expected:" and "instead got:" are backwards. The "Expected" is your solution's output, and the "instead got" is what the test expects. It's an easy (and common) mistake to make when creating tests here.
The error message is a bit of a nightmare to comprehend on one line, but I feel there's enough information there to debug it.
Expand the values in the message out, and compare them. Make sure each opening brace has a closing brace, and that all statements within a brace pair are partitioned with a comma.
Good luck!
Great beginner Kata, ready for approval in my opinion, ranked it 8kyu
One thing though - there are a few spelling mistakes. It would be great if you go back and fix it. However, since it does not affect the objective of the Kata I have not marked it as an issue.