WEBVTT 0 00:00.540 --> 00:08.370 All right. Time for challenge 13. The goal of this challenge is such that when you head over to the compose 1 00:08.370 --> 00:16.890 page and you create a number of posts, one is called Day 1, one's called Day 2, one's called day 3 and then you hit publish 2 00:16.980 --> 00:18.780 and you publish all three posts, 3 00:18.780 --> 00:20.450 you have to do this three times. 4 00:20.550 --> 00:28.780 But at this point if you head over to your terminal you should see each of the post titles printed out. 5 00:28.860 --> 00:35.040 So the first time when I created a post, it only printed out the first title, the second time it printed 6 00:35.130 --> 00:41.920 the first and the second title and a third time just now it printed all three titles that I've created. 7 00:42.060 --> 00:51.200 This is no longer the entire posts array but it's actually posting each and every title inside the array. 8 00:51.540 --> 00:58.860 So in order to do this, you'll need to write a FOR loop inside the homeeks that loops through this 9 00:58.920 --> 01:04.190 post array and console logs each and every title, 10 01:04.320 --> 01:11.520 the titles of each of these posts. And to test it you should have a minimum of two posts so that you 11 01:11.520 --> 01:18.800 can make sure that you are indeed printing out all of the titles inside the posts array. Pause the video and complete 12 01:18.830 --> 01:20.400 this challenge. 13 01:20.450 --> 01:22.990 All right here comes my first hint. 14 01:23.030 --> 01:25.510 Now remember that to create a FOR loop 15 01:25.550 --> 01:33.350 this is the standard format. And you first start off from zero and then you put an upper bound when you 16 01:33.350 --> 01:35.060 want the FOR loop to stop, 17 01:35.060 --> 01:37.470 so how many times do you want the loop to run. 18 01:37.880 --> 01:43.310 Then you increment through the FOR loop one at a time and that allows you to tap into this thing called 19 01:43.410 --> 01:48.880 i which will change from 0 to 1 to 2 until the upper bound. 20 01:48.980 --> 01:55.160 And this means that if you add an array then you can tap into the zeroth item, the first, the second, the 21 01:55.160 --> 02:00.920 third and that means you can loop through the array and do whatever it is you need with each of the 22 02:00.920 --> 02:02.940 items inside the array. 23 02:03.290 --> 02:08.210 So see if that's enough of a hint for you to be able to complete this challenge. 24 02:09.240 --> 02:18.570 Now my second hnt is that in our case, the upper bound inside our FOR loop will be the number of posts inside 25 02:18.630 --> 02:19.880 our posts array. 26 02:20.130 --> 02:26.900 If there's only one item inside posts array then the upper bound will simply be one 27 02:27.210 --> 02:33.770 and if there's 10 items inside our posts array, then the upper bound will be 10. 28 02:33.840 --> 02:40.270 In order to do that dynamically remember you can tap into array.lent,h so posts.length. 29 02:40.440 --> 02:42.470 I hope that's enough of a hint for you to be able to 30 02:42.480 --> 02:44.100 now complete the challenge.