Running infinite print javascript in HTML

Melchy

New Member
I'm trying to implement a script that will print an infinite amount of numbers onto the page. I know the java code for this:\[code\] public static void main(String [] args){ int j = 1; for(int i = 0; j < 10; i++){ System.out.println(i); } }\[/code\]I've tried what I could to implement this using javascript onto a .html file but it's not showing. What would the equivalent javascript code?
 
Back
Top