As we know, HTML defines the content of a page. Now that we know how to replace text, we can replace placeholders in HTML with real data. After that, we just need to append HTML strings to start building our resume.>>Let’s look inside helper.js, which through the magic of computers we have over here on
And here’s the code that we use to do that. Now, you might remember formattedName from before. And we added formattedRole. Now, to create our formattedRole, we took HTMLheaderRole.replace, and we replaced the data placeholder with the role that we created up here. So, this next bit of code is a little bit tricky. So,
So, I’ve opened up jsonlint.com which will tell us whether or not this JSON is in the right format. Go ahead and copy this object in just using the curly braces. I don’t need to copy var education. Paste it in and click Validate. And scrolling down we can see that this is, in face,
(audience applauding) – I am way behind on my book reviews, so now that I know somebody was actually reading them, I’m gonna have to get going, I’m like seven months behind. Does anybody know who this is? Yeah, can I hear it? – Yes! – No, the name. (all laughing) No, I’m, yes, no.
It’s cool that we learned how to use the console to manipulate other web pages, but, of course, we need to start making our own.>>It’s easy to open up the page. I’m going to get rid of this Hello World here. And all you have to do is open index.html in the browser of your