I need to retrieve a string from an array in vue and display it on the screen. Here is the method I created for this purpose:
displayFixturesName() {
const result = this.selectedFixture.toString();
document.getElementById('resultFixture').innerHTML = result.join()
}
The variable this.selectedFixture
holds an array of my choice
To display the selection, I use the following code snippet
<p class="subtitle" id="resultFixture">{{displayFixturesName()}}</p>
However, when I run this code, I encounter an error message in the console stating:
[Vue warn]: Error in render: "TypeError: result.join is not a function"