Kotlin passing string to Web Assembly
From JavaScript as of now we cannot pass string to WebAssembly, therefore the string will be converted to an array of bytes and kept in browser's memory object of the kotlin web assembly framework object kotlinObject
From WebAssembly by calling the JavaScript method for each character, transfer the numeric value
Then convert the numeric value to character and combine to a string in kotlin
This is achieved using below code
JavaScript: string to UTF array utlity