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...
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand