This is a freeCodeCamp exercise about nested objects and arrays. Here are some things that helped.
Translate the Instructions Correctly and Comprehensibly
I watched the FCC YouTube tutorial. Of course I was able to pass the challenge by copying what the instructor did (see image). But this didn’t help with my goal of learning and understanding. I read some feedback from Read More »
The real lesson here is about passing values into a function.
You can declare a function the same way you declared variables:
function words(noun, adj, adv, verb)
In the snippet, above, we declared the name of a function (words), and we declared the names of four inputs for the function. You can Read More »
It’s more clear if you look at the table and read, “If I want my string to display with a new line, I would use
\n.” You’ll learn the lesson quicker by reverse-engineering it from the solution, which is:
const myStr = "FirstLine\n\tSecondLine\nThirdLine";
The lesson uses the var keyword, but the current recommended keywords for variables are const or let.
In the Standardize Times with the HTML5 Datetime Attribute lesson in the Applied Accessibility section, the example shows values that look like this:
2016-08-15T08:12Z. The “Z” stands for Universal Time Coordinated (UTC).
time element wraps around text within Read More »