And I can just talk to JS world without any additi...
# webassembly
r
And I can just talk to JS world without any additional work?!
I've created a global JS object:
Copy code
<script>
        var test = Object();
        test.hello = function(param) {
            return "Hello " + param + " from JS";
        }
    </script>
declared some externals:
Copy code
external interface Test {
    fun hello(message: String): String
}

external val test: Test
and successfully called my method from wasm kotlin code:
Copy code
console.log(test.hello("WASM"))