RTD Training & Development

Kotlin Programming for JavaScript

Call us on +44 (0)1225 66 72 72 or send us a message

Kotlin Programming for JavaScript

Note: During the Covid-19 crisis, courses will only be delivered over the web

5 days hands-on £2,425+VAT

This course can be delivered over the web

Next scheduled date:
Monday February 3rd, 2025 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Covers the essential features of programming in Kotlin and its core libraries, including the latest features and its interface to JavaScript for both DOM and Node.js programming.

Outline

Differences to JavaScript

  • Syntax differences
  • Type differences
  • Read-only and read-write variables
  • External functions and data
  • Type inference
  • Operator differences
  • Coding conventions
  • File and package conventions
  • Interacting with the DOM
  • Interacting with the Node.js

Fundamental Elements

  • Kotlin and JavaScript types
  • Null safety
  • Smart casting
  • Conditional expressions
  • Ranges
  • Loops
  • String templates

Functions

  • Writing functions
  • Function arguments
  • Anonymous functions
  • Lambda functions
  • Function references
  • Inlining
  • Scope functions

Collections

  • Lists
  • Sets
  • Maps
  • Mutable collections
  • Destructuring
  • Collection conversion

Classes

  • Defining classes
  • Visibility
  • Class functions
  • Class properties
  • Primary and secondary constructors
  • Data classes
  • Enumerations

Object-Oriented Programming

  • Inheritance
  • Abstract classes
  • Interfaces
  • Nested and inner classes
  • Operator overloading
  • Objects and companion objects
  • Extension functions and properties

Generics

  • Generic types
  • Generic functions
  • Generic constraints
  • Argument variance

Coroutines

  • Concurrency
  • Coroutine scopes
  • Channels
  • Shared mutable data
  • Coroutines and threads

Overview

Kotlin is a modern language that known mainly for its ability to write code for the JVM and Android. Kotlin can also target JavaScript applications for both client-side programming via the DOM and server-side programming via Node.js.

This course covers all the major features of the latest release of Kotlin and its interoperability with JavaScript.

Objectives

On successful completion of this course, participants will be able to:

  • Write and compile Kotlin programs
  • Run and debug Kotlin programs in a browser
  • Run and debug Kotlin programs in Node.js
  • Understand the differences between JavaScript and Kotlin
  • Utilise the artifacts in the Kotlin library
  • Use the object-oriented features of Kotlin
  • Use the functional features of Kotlin

Audience

This course is aimed primarily at programmers who are interested in developing web applications in Kotlin or using Kotlin with JavaScript code. Engineers, analysts and managers will also find it useful.

Prerequisites

Participants are expected to be familiar with JavaScript for DOM and/or Node.js programming. Those who wish to learn Kotlin as a generic language would be better served by our Kotlin Programming course.

share buttons
share on twitter
share on linkedin
share on facebook
share by email