What I want this code to do is:

*search for the position of all the words present in the sentence "some warriors know when they are defeated,
whether some of them are too stubborn to accept it and they
are the one who die " inside the `array_of_words`*

NOTE: I simply mean to **search for the position of all the words present in array `split_Sentence` inside the array `array_of_words`.**

I have given an example in the code below in blue color after `//`.

```
<html>
     <body>
     <script>
     const Sentence= "some warriors know when they are defeated, 
     whether some of them are too stubborn to accept it and they 
     are the one who die "
     const split_Sentence = Sentence.split(" ")
     var array_of_words = ["some", "warriors", "know", "they", 
     "defeated", "whether", "too", "stubborn", "one", "die"]
     var arrayLength=split_Sentence.length
     //for example a function that searches for the position of the word "some" from the first array i.e. split_Sentence in the second array i.e. array_of_words
     </script>
     </body>
</html>

```