In this chapter, we've explored how Kotlin can be used for frontend web development. We saw how Kotlin can target JavaScript, and be transpiled into human-readable JavaScript code that can then be consumed like any other JavaScript. We also discussed how Kotlin can work alongside existing popular JavaScript libraries by using dynamic types, or by generating Kotlin bindings using TypeScript definitions and the ts2kt tool. Finally, we put these concepts together to create a simple Kotlin project that targets JavaScript. This project's resulting JavaScript was loaded into a simple HTML document, and then manipulated programmatically from Kotlin using generated jQuery bindings. This sample project demonstrated several of the potential benefits of using Kotlin for web development: strong typing, the Kotlin standard library, and a familiar programming language for...
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