There is a function in my code that takes two values as input, both formatted like this:
MyFunction("word1","word2")
However, when the function receives the values, it looks like this:
MyFunction(test1,test2){}
The issue I'm facing is with storing the second value. I am able to store the first value without any problem, but for the second one, I seem to be encountering difficulties.
I have attempted methods such as:
var String=test2.toString(); // This doesn't work
var String=String(test2); // This also doesn't work
I have tried various other approaches as well, but none of them seem to be working...
Can someone help me understand what I might be doing wrong? :(