Let's open up our application and do a quick play through of this application, and usually once I'm
completing and running the final run-Through of the game that I've been building out, I usually like
to play it and I end up playing it quite a few times just to make sure that everything is functioning
as intended.
So we see that we need to select the word course.
We need to select the word coding.
When you select the word brackets, Lawrence H, HTML and JavaScript.
Now, one of the things you might have noticed is, well, it's always in that exact order.
So even though I can play through the scheme multiple times, it's always going to have that order.
And that's because we're outputting these items within the order that this original array we're taking
that my words array and we're scrambling the order of those words and duplicate out that array so that
we're not resorting that original array.
So let's create a temporary.
So we'll call it temporary and we're going to use the base function.
So taking the my words.
And using slice, so it's going to return a copy or a portion of the array.
And if we start the zero point, that's going to duplicate out that array.
So this is going to be our new array that we're using instead of resorting our my word sorry, we're
going to a resort, this current array, and we can also do the same thing for the temperate.
So we want to make sure that we're outputting the value of the my word, Sirait.
And this word will be equal to Eitam, which is equal to the temporary item.
So we're not actually updating any of the monetary content.
So let's try that out.
So start.
And now we notice we don't have JavaScript first and we're still able to move through the elements,
the items in the array, and we're still able to conclude the game.
But this time we've got a better sort order.
So let's try that one more time.
Just make sure that everything is working and hit start again.
And you can see that now we are reorganizing and we're resetting that order, but we're still working
through that original, my words are so every time we're starting, we're always starting with JavaScript.
Now, you have a choice here as well.
If you want, you can resort that my word.
Sorry.
So if you wanted to, you could resort the order of that one as well.
So it's up to you and send out different orders of those arrays so that these are going to be actually
displayed out differently so we can bring that, duplicate this and take the my words and resort that,
because that's actually not going to matter, because this is still going to work through all of those
items.
So that time we saw that, it started at Lowrance and this time it's going to start at coding.
So that's no longer starting in that same exact order.
So we've randomized it and made it a little bit more interesting.
So go ahead and add in these final tweaks and adjustments to your application.
And the next lesson will do a quick overview of all of the content and the application that we've built
out.
So that's still to come in the next lesson.