In this instance, answerString is assigned an initialvalue from the outcomes of the if-else expression. Type inference can be utilized kotlin development team toomit the express type declaration for answerString, but it’s typically a goodidea to include it for readability. Int is a sort that represents an integer, one of many many numerical types thatcan be represented in Kotlin. Similar to different languages, you can even useByte, Short, Long, Float, and Double depending on your numerical knowledge. In Lesson ...
Continue Reading →OCT