Ok heres what i got, i am getting an error 'cannot assign to a function result' whenever i run this function .. I am gonna post only the first half of the code cuz it is kind of long ,
If anyone could help i would greatly appreciate it..Code:sofar="______"; thepot=""; s=""; p=""; theword=""; l=0; function HangMan() { theword="daniel"; l=theword.length if (sofar=theword) { Finish(); } userin= prompt('Guess a lettter'); //The For Loop is where it says its happening i have never // seen this error before so i dont know what it means for (x = 1; x < l; i++) { if (theword.substring(x,1)=userin) { sofar+=theword.substring(x,1); RefVar(); } }
oOblackorbOo




Reply With Quote