https://kotlinlang.org logo
o

orangy

09/22/2017, 12:10 PM
There is no “static” in some runtimes, e.g. in JavaScript.
d

Deactivated User

09/22/2017, 10:52 PM
It is prototyped, but the equivalent for static still exists:
var MyClass = {}; MyClass.staticFunc = function() {}; MyClass.prototype.instanceFunc = function() {};
or in the EcmaScript stdlib
Date.now()
is “static” vs
new Date().getTime()
2 Views