vbscript for loop

The solution for “vbscript for loop” can be found here. The following code will assist you in solving the problem.

Dim i

For i = 1 To 5
document.write(“The number is ” & i & “
“)
Next

‘ Output:
‘ The number is 1
‘ The number is 2
‘ The number is 3
‘ The number is 4
‘ The number is 5

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts