4. Dart - Try and On

 Try and do something else if failed function:

    try {

        variable = int.parse(variablestring);

    } on FormatException {

        do something else when cannot turn string to int

    }


Comments

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort