Prev Demo
Confusing Nested For Loop With Var Keyword
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script> for (var i = 0; i < 3; i++) { for (var i = 0; i < 2; i++) { alert(i + i) } } </script> </head> <body> <p>TechFunda.com code editor</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output