@samy youssef,
												Hi,
I noticed some errors on your code and i fix that and this is the correct code:
var counter=0;
var myValues = [];
var InputNumber = prompt("Enter any number, Exit with zero");
var Num = parseInt(InputNumber);
myValues [0] = Num;
while (InputNumber != 0)
{
	InputNumber=prompt("Enter any number,Exit with zero");
	var someNum = parseInt(InputNumber);
	counter+=1;
	myValues [counter] = someNum;
}
document.write("Values are: "); 
for(var i = 0;i<myValues.length;i++){
	document.write(myValues{i}  + ", ");
} 
I added something to write the results of array and when i output this in browser and if i add 0 it finish execution and the result is following:
Values are: 1, 2, 3, 0, 
P.S.: in code inside for loop you need to change {} brackets with correct one because its not showing when i pasted code here ...
Hope this can help you.
Cheers.