Hi, This is how steps are supposed to done:
5:
if(content.search(inputStr)>=0)
{
alert("String found");
}
else {
alert("String not found");
}
7&8:
function count() {
let content = document.getElementById("content").innerText;
// use string function to create array of its words
let arr = content.split(" ");
let resultDiv = document.getElementById("result");
// use array property to find number of array elements
resultDiv.innerText = "Number of words:" + arr.length;
}