let Over var, === Over ==: The JavaScript Essentials Kotlin Devs Need
Mobile developers moving from Kotlin to JavaScript for React Native or Node get a direct translation of core syntax; the explanations of var's scope leaks and =='s coercion prevent silent bugs that are hard to spot.
JavaScript basics for developers who already know Kotlin: variable declarations, object literals, operators, functions, and async. The material explains why modern code uses `const` and `let`; `var` ignores block scope and leaks variables, a legacy that can't be removed without breaking old pages. It also shows why `==` is a trap (it coerces types, so `0 == ''` is true) and why strict `===` is the sane default, with optional chaining and nullish coalescing mirroring Kotlin's null safety.
Reusing object shapes comes in three forms: class syntax (closest to Java/Kotlin), a factory function returning an object literal, or TypeScript for projects where pure JS's missing type checking hurts. Functions cover default parameters, arrow functions as the JS name for lambdas, and `await` for async work. Each concept is mapped to its Kotlin counterpart, so mobile developers can transfer what they already know.
JS keeps legacy behavior like `var` and `==` for web compatibility, so modern fixes come as new syntax (`let`, `===`) rather than breaking changes.
The freedom to add properties to object literals makes pure JS flexible but pushes large projects toward TypeScript, which reintroduces structure.
Optional chaining and nullish coalescing bring Kotlin-style null safety into JS, reducing the gap between the two languages.
Isn't iOS development just Swift?
Yes, but Swift feels a bit too heavy for me. I'm only learning iOS development to make an offline music player for my iPhone, and it looks like I can just use JS + Scriptable.
I recall the signing required to install a native iOS app comes with a lot of restrictions — it's not easy to deal with.