In this chapter, we have learned about the different types of variables and their declarations. We also discussed type inference and how Kotlin helps to improve productivity by allowing a programmer to ignore explicit type declarations. This chapter has explained null safety and how Kotlin helps us to write safe and concise code. We have also discussed if statements, else as an expression, loops, labeled for loops, continue, and break statements in detail. This chapter concluded by discussing functions and their important features, including functions as an expression, named parameters, and package-level functions.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia