30. Go - Conversion

Convert one type to another type if there is a similar underlying type.

    var xx int
    var toddAge variableNameAge = 50
    xx = int(toddAge)
    fmt.Println(xx)

Converted toddAge (type variableNameAge) to an int to be able to declare as xx which is type 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