for Loop Error

#pragma strict

function Start () {
for(int i = 0; i < 100; i++){
Debug.Log(i);
}
}

Errors:
Assets/NewBehaviourScript.js(4,17): BCE0044: expecting ;, found ‘i’.
Assets/NewBehaviourScript.js(4,36): BCE0043: Unexpected token: ).

using unityscript you would need

var i : int = 0

you’ve used the c# syntax

or just type

for(var i = 0; i < 100; i++){
Debug.Log(i);
}