I HAVE ONE question in js?
Hi friends i have one button and with onclick it send numbers to function one and I want from function one send numbers to function two in function two have a array and i want save numbers function one inside <button onclick="function_one(1)" ><\button> Js code đ function_one(number) { if(.........) { function_two(numbers); } else if (.......) { function_three(number); } else return 1; } function_two(num){ var array=[]; array[num]=num; return array; } function_three(x){ var array=[]; array[x]=x ; return array; } ------------------------------------------------------ my friends way i have the bug??? return of function two and three undefined ?