|
Re: Calling all Programmers please
I prefer to keep it simple
function CheckSum(str) {
var sum;
sum=0;
i = 0
while (i<str.length) {
sum = sum + str.charCodeAt(i);
i=i+1;
}
return sum;
}
charCodeAt(i); is just teh javascript equiv of basic mid() and asc()
|