1
00:00:01,240 --> 00:00:07,210
Let's open up our application and do a quick play through of this application, and usually once I'm

2
00:00:07,210 --> 00:00:12,790
completing and running the final run-Through of the game that I've been building out, I usually like

3
00:00:12,790 --> 00:00:17,620
to play it and I end up playing it quite a few times just to make sure that everything is functioning

4
00:00:17,620 --> 00:00:18,320
as intended.

5
00:00:18,610 --> 00:00:20,620
So we see that we need to select the word course.

6
00:00:20,860 --> 00:00:22,290
We need to select the word coding.

7
00:00:22,330 --> 00:00:26,300
When you select the word brackets, Lawrence H, HTML and JavaScript.

8
00:00:26,740 --> 00:00:31,740
Now, one of the things you might have noticed is, well, it's always in that exact order.

9
00:00:32,080 --> 00:00:38,410
So even though I can play through the scheme multiple times, it's always going to have that order.

10
00:00:38,530 --> 00:00:45,010
And that's because we're outputting these items within the order that this original array we're taking

11
00:00:45,010 --> 00:00:52,000
that my words array and we're scrambling the order of those words and duplicate out that array so that

12
00:00:52,030 --> 00:00:54,690
we're not resorting that original array.

13
00:00:54,940 --> 00:00:56,530
So let's create a temporary.

14
00:00:56,770 --> 00:01:01,460
So we'll call it temporary and we're going to use the base function.

15
00:01:01,750 --> 00:01:03,580
So taking the my words.

16
00:01:04,720 --> 00:01:09,320
And using slice, so it's going to return a copy or a portion of the array.

17
00:01:09,520 --> 00:01:13,760
And if we start the zero point, that's going to duplicate out that array.

18
00:01:14,020 --> 00:01:21,010
So this is going to be our new array that we're using instead of resorting our my word sorry, we're

19
00:01:21,010 --> 00:01:27,720
going to a resort, this current array, and we can also do the same thing for the temperate.

20
00:01:28,060 --> 00:01:32,050
So we want to make sure that we're outputting the value of the my word, Sirait.

21
00:01:32,320 --> 00:01:38,190
And this word will be equal to Eitam, which is equal to the temporary item.

22
00:01:38,350 --> 00:01:41,200
So we're not actually updating any of the monetary content.

23
00:01:41,290 --> 00:01:42,150
So let's try that out.

24
00:01:42,430 --> 00:01:43,060
So start.

25
00:01:43,450 --> 00:01:49,140
And now we notice we don't have JavaScript first and we're still able to move through the elements,

26
00:01:49,150 --> 00:01:53,110
the items in the array, and we're still able to conclude the game.

27
00:01:53,290 --> 00:01:56,620
But this time we've got a better sort order.

28
00:01:56,800 --> 00:01:58,230
So let's try that one more time.

29
00:01:58,240 --> 00:02:02,140
Just make sure that everything is working and hit start again.

30
00:02:06,830 --> 00:02:13,700
And you can see that now we are reorganizing and we're resetting that order, but we're still working

31
00:02:13,700 --> 00:02:19,760
through that original, my words are so every time we're starting, we're always starting with JavaScript.

32
00:02:20,000 --> 00:02:21,740
Now, you have a choice here as well.

33
00:02:21,740 --> 00:02:24,650
If you want, you can resort that my word.

34
00:02:24,660 --> 00:02:25,060
Sorry.

35
00:02:25,280 --> 00:02:28,850
So if you wanted to, you could resort the order of that one as well.

36
00:02:29,450 --> 00:02:36,320
So it's up to you and send out different orders of those arrays so that these are going to be actually

37
00:02:36,320 --> 00:02:44,690
displayed out differently so we can bring that, duplicate this and take the my words and resort that,

38
00:02:45,110 --> 00:02:49,520
because that's actually not going to matter, because this is still going to work through all of those

39
00:02:49,520 --> 00:02:49,880
items.

40
00:02:49,880 --> 00:02:55,580
So that time we saw that, it started at Lowrance and this time it's going to start at coding.

41
00:02:55,790 --> 00:02:58,580
So that's no longer starting in that same exact order.

42
00:02:58,580 --> 00:03:01,700
So we've randomized it and made it a little bit more interesting.

43
00:03:01,820 --> 00:03:05,960
So go ahead and add in these final tweaks and adjustments to your application.

44
00:03:06,200 --> 00:03:12,350
And the next lesson will do a quick overview of all of the content and the application that we've built

45
00:03:12,350 --> 00:03:12,590
out.

46
00:03:13,220 --> 00:03:14,750
So that's still to come in the next lesson.
