nested for loop based on user input javascript code example Example: for i # For loops in Dip for i = 0 to 5 then print(i)