[Solved] Get the word, from a sentence that the user is talking about [closed]


Credit: ThuverX

let word
if(content.indexOf("what") !== -1 && 
content[content.indexOf("what")+1] !== "is")
    word = content[content.indexOf("what")+1]
else if(content.indexOf("meaning") !== -1)
    word = content[content.indexOf("meaning")+2]
else if(content.indexOf("means") !== -1)
    word = content[content.indexOf("means")-1]

0

solved Get the word, from a sentence that the user is talking about [closed]