Kotlin Typescript similarities when declaring a var

I was watching this webinar – React+TypeScript+TDD in Rider
and I couldn’t help myself noticing the similarities between TypeScript and Kotlin


// Kotlin
private val project: Project // Cannot reassign after init
private var activeModule: Module // Can reassign after init

//TypeScript
var employeeName:string = "John";

Leave a comment