As a complete newcomer to Vue, I wanted to experiment with methods a bit. Specifically, I attempted to print out an array of strings using the following method:
printStringArray(objectWithArray) {
i = 0;
s = '';
while(i < objectWithArray.stringArray.length) {
s = objectWithArray.stringArray[i] + s,
};
return s;
},
However, I encountered errors related to variables i and s. Despite attempting different approaches, I consistently received messages stating that either the variables were not defined or that although they were defined, they were not utilized. Have others faced this issue as well? Although I referenced working code snippets from other sources in order to identify my mistakes, I continued to encounter similar errors. It seems like a simple problem, but unfortunately, I haven't been able to locate any helpful resources on the topic.