To solve the problem above, the structure looks like this:
Now, add a larger content view below the header.
I can point out exactly which style property needs adjustment to get your code passing. Share public link
Use JavaScript comments ( /* Comment here */ ) inside your return function to mark where sections begin and end. This keeps your code readable for instructors grading your work.
Hardcoding absolute math values (like rect.setPosition(110, 110) ) inside the sub-class.
Even with the correct logic, many students fail the CodeHS autograder on the first try. Here are the top three mistakes for "nested views":
2.3.9: Nested Views Codehs [patched]
To solve the problem above, the structure looks like this:
Now, add a larger content view below the header. 2.3.9 nested views codehs
I can point out exactly which style property needs adjustment to get your code passing. Share public link To solve the problem above, the structure looks
Use JavaScript comments ( /* Comment here */ ) inside your return function to mark where sections begin and end. This keeps your code readable for instructors grading your work. To solve the problem above
Hardcoding absolute math values (like rect.setPosition(110, 110) ) inside the sub-class.
Even with the correct logic, many students fail the CodeHS autograder on the first try. Here are the top three mistakes for "nested views":