Submitted almost 3 years ago
Responsive pricing component with CSS grid, JS
@MantasGarlauskas
Design comparison
SolutionDesign
Solution retrospective
- When code starts - if you click toggle UNDEFINED appears. Didn't understood how to change that, any feedback.
Community feedback
- @rogierwiertzPosted almost 3 years ago
Nice job!
You get UNDEFINED, because the initial text content of the span with id 'pageviewsDOM' has an extra space at the end.
<div class="pageviews"> <span id="pageviewsDOM">100K </span><span> PAGEVIEWS</span> </div>The property '100K ' doesn't exist on prices.yearly.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord