Simple For Loop Crashes Unity

I’ve been doing the tutorial “C# for Unity Game Development with Jesse Freeman” on Lynda.com but the for loop seems to crash Unity.

Here is all my code. Only the for loop seems to make it crash.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HelloWorld : MonoBehaviour {

    public string text = "Hello World";
    public bool turnOn = true;
    public float posX = 5.0f;
    public int intTest = 5;

    List<string> animals = new List<string>() {"dog", "cat"};

    string[] names = new string[]{"Jesse", "Freeman"};

    public Dictionary<string, string> weapons = new Dictionary<string, string>();

	// Use this for initialization
	void Start () {

        animals.Add("fish");
        animals.Add("bird");

        animals.Remove("bird");

        //print("list to Array length " + animals.ToArray().Length);

        ////names[0] = "Jesse";


        ////text = Test ("Calling Test()"); //"Updated during Start()";

        //print(names[0]+" "+names[1]);
        //print("Total Names "+names.Length);

        //print("Total Animals " + animals.Count);
        //print("Animal 1 " + animals[0]);
        //print("Last Animal " + animals[animals.Count -1]);

        //weapons.Add("slot1", "sword");

        //print("Weapon in slot 1 " + weapons["slot1"]);
        //print("Slot 2 equipped " + weapons.ContainsKey("slot2"));

        //ConditionTest();
        LoopTest();

    }
	
	// Update is called once per frame
	void Update () {
		
	}

    string Test(string value){
        return value + " Updated during Text()";
    }

    void ConditionTest() {

        string name = "Freeman";

        if (name == "Jesse") {
            print("Name is Jesse");
        }else if(name == "Freeman") {
            print("Name is Freeman");
        }else {
            print("Name is not Jesse");


        }

        int health = 0;

        bool isDead = health <= 0;

        print("isDead " + isDead);

        if (isDead)
            print("Player is dead");

        string mode = isDead == true ? "GameOver" : "IsPlaying";

        print("Game Mode" + mode);

    }

    void LoopTest(){

        for(int i = 0; 1 < 10; i++) {
            print ("Loop " + i);
        }
    }
}

Looks like you have a typo. Change “1 < 10” to “i < 10”.

Thank you. I can’t believe I did that…