R
Ron Croonenberg
Hello,
I am somewhat new to Javascript (except for the occasional short script
I never used it that that much...
Anyway, I am writing a script and have a function that need to change 2
strings.
basically in a function I have two strings (they are not global) str1
and str2:
function first () {
..
..
var str1 = "";
var str2 = "";
..
code..code...
..
second(str1, str1);
..
}
function wishfullthinking(str1, str2) {
if (something)
str1 = "this";
if (something else)
str2 = "that";
}
So I was hoping in first to have changed strings... what am I missing ?
thanks,
Ron
I am somewhat new to Javascript (except for the occasional short script
I never used it that that much...
Anyway, I am writing a script and have a function that need to change 2
strings.
basically in a function I have two strings (they are not global) str1
and str2:
function first () {
..
..
var str1 = "";
var str2 = "";
..
code..code...
..
second(str1, str1);
..
}
function wishfullthinking(str1, str2) {
if (something)
str1 = "this";
if (something else)
str2 = "that";
}
So I was hoping in first to have changed strings... what am I missing ?
thanks,
Ron