For hours I have been trying to get this piece of code to work.
— I tried not async as well btw.
getSentenceNouns(){
wordpos.getNouns(this.sentence, async (result) => {
let nouns = await result;
return nouns;
})};
However the return value is undefinied, but if I console log inside the getNouns
method I get the desired output… I tried it all, nausea kicked in, plz help.