Lab #20 Array Cardio Day 2
Lab #20 is titled "Array Cardio Day 2" and is a continuation from the first day of this lab. This is another lab that has really no HTML to talk about but everything lies within the JavaScript console.
I'm given data yet again and it happens to be people's named and a year they're born. The first thing I do is check whether at least one person is 19 years of age, which is returned by the console. Next, I try to find out whether everyone is 19, which turns out to be false. Then, I try to find the comment associated with the ID 823423, and I must delete it. In order to delete it, I used comments.splice(index, 1); which removes it.
Wanting to moderate data should always be on a web designer's mind, considering their page won't always stay the same. The data they hold on their page should always be monitored and checked for errors. If they do occur, then they can just splice it out by searching it out and then removing it. They can also try to find out specific things from their data. For example, say there is a rated R movie and tickets are being sold. If a website was made that collected their age, you can easily filter out the people that are under 18 years and then tell everyone in that section of data that they aren't allowed to attend the movie.
I'm given data yet again and it happens to be people's named and a year they're born. The first thing I do is check whether at least one person is 19 years of age, which is returned by the console. Next, I try to find out whether everyone is 19, which turns out to be false. Then, I try to find the comment associated with the ID 823423, and I must delete it. In order to delete it, I used comments.splice(index, 1); which removes it.
Wanting to moderate data should always be on a web designer's mind, considering their page won't always stay the same. The data they hold on their page should always be monitored and checked for errors. If they do occur, then they can just splice it out by searching it out and then removing it. They can also try to find out specific things from their data. For example, say there is a rated R movie and tickets are being sold. If a website was made that collected their age, you can easily filter out the people that are under 18 years and then tell everyone in that section of data that they aren't allowed to attend the movie.

Comments
Post a Comment