using "for" in Unity Script HELP!

for (int i = 0; i < waypoint.Length; i++)
        Gizmos.DrawLine(waypoint*.transform.position, waypoint[i++].transform.position);*
*<p>when using that in UnityScript(JS) I get an error saying</p>*
*<p>Assets/WaypointSystem.js(61,18): BCE0044: expecting ;, found 'i'.</p>*

In JS it should be:

for (var i : int = 0; i < waypoint.Length; i++)

this is the c# version of the code you were writing

for (int i = 0; i < waypoint.Length; i++)
Gizmos.DrawLine(waypoint_.transform.position, waypoint*.transform.position);_
the error you got was because of the i++ instead of the i in:
Gizmos.DrawLine(waypoint_.transform.position, waypoint[i++]waypoint[i++].transform.position);_