Sorry those were silly mistakes. I still get the same errors now with the sigils though. And i ve started counting from 0 but have removed the = sign from the second argument in the for loop. Is there a way to mix the for loop and the JavaScript/HTML? I still can't run and print my algorithm as i still get the same two errors. Thanks