This document contains hints for the Shade Town Solo Project.
PS: Please remember that we have both a #javascript-help channel and a #html-css-help channel in our Discord community. If you have a very specific issue you’re struggling with, you should consider posting it there.
JavaScript Hints
- Make sure you declare all variables with the
let
andconst
keywords. - Separate self-contained data objects into their own file and use the
import
declaration. Don’t forget to update the html file also! - Template literals
`string text ${expression}`
provide an easy way to combine text and variables in rendered html. - When updating the
sunglassesNew
object with the chosen customisations you can spread in all the unchanged values{...}
. - If you need to access nested values in an object you can de-structure those values rather than using dot notation e.g.
let {name, price, color } = productOptions
- Declare the
render
function with default parameters.
If you are still struggling for hours with this Solo Project after having used both of the above hints, please let us know via the #general channel on Discord, and we will consider adding more hints. Important: be sure to include a link to you scrim, so that we can understand what you are struggling with.