Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
Kotlin WebAssembly access DOM

I've got the following code in Kotlin

import kotlinx.interop.wasm.dom.*
import kotlinx.wasm.jsinterop.*

fun main(args: Array<String>) {
    val veryImportantCalculation = 42

    //access the #wasm in html and append it to the element

}

which is compiled to wasmFunctions.wasm,

and an extremely easy HTML:

<html>
<head>
  <meta charset='UTF-8'>
  <script wasm="./wasmFunctions.wasm" src="./wasmFunctions.wasm.js"></script>
</head>
<body>
  <label id='wasm'></label>
</body>
</html>

I need to put the veryImportantCalculation value from Kotlin-to-wasm code in the #wasm label. Is there a way to with the imported dom library?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda