week4lab3

 From this week's lab I learn how to create a branch, merge the branch and puch it to the master branch. 


In this week lab I added two features to my current app, print out the with json format and only print out those websites with bad or good status. 




The first part is for --bad and --good command. In this part, I use for loop instead of foreach() function, because we need to decide if we got any --bad or --good command passed in to the program.


Secondly, for  the print out json format part. I crate a new variable resultList to store all the result. Each time the foreach() function get called, it will push the result into the resultList. At the end we just need to print out the resultList then we are all good.



By the way we can also commit our code from the VS code editer, at the left hand side. we can directly see what files have been changed.

Comments

Popular posts from this blog

Week3Lab2

Week2 Lab1