-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 04 Submission #2
Conversation
} | ||
|
||
|
||
function insertHTMLTags(buffer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is close, try using Regex to pattern match so your code can append the tags at the correct spots. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work so far, your loop functionality is working great. There's some logic to add to the code that creates the HTML document and it looks like you have some testing to write. let me know if you need ideas for things to test. spying on a console.log might be a good place to start.
Notes for grader
.txt
file contents in article tags and I've got a working solution for the h2 tags (only the first section title is working right now.Lab Requirements
Assignment 1: Code that writes code ...
files
folder calledloop.js
that initiates an array with 3 people's names, iterates them with a forEach loop, and console.log's each value.Buffer.from()
to simply create a bufferfrom
chunks of your target code. Rather, you will need to work character by character.node loop.js
from within thefiles
folder and seeing the array items printed out.Assignment 2: Create an
<article>
pair-programming.txt
from thefiles
folder and make the following transformations:<article>
tags<h2>
<h3>
tags.pair-programming.html
Testing