<@U9QFK3QA3> commented on <@U9QFK3QA3>’s file <htt...
# javascript
u
@chungsam95 commented on @chungsam95’s file

https://kotlinlang.slack.com/files/U9QFK3QA3/F9NT6U9BK/image.png▾

: DemoGen.kt:
Copy code
package com.qualtrics.api.quasar

class DemoGen {
    companion object {
        @JvmStatic
        fun foo() {
            println("this is foo")
        }

        @JvmStatic
        fun bar() {
            println("this is bar")
        }

        @JsModule("hello")
        external fun sayHello(name: Any)
    }
}
hello.js:
Copy code
module.exports.sayHello = function(name) { console.log("Hello, " + name); };