'call/run function from Kotlin with Nodejs

I've wrote some lines of code in Kotlin now i want to execute this function from Javascrip or Nodejs is that possible? I only find solution for calling JS functions but not for calling Kotlin functions

for example: JS:

function callKotlinHelloWorld(){
  //excute stuff
}

Kotlin:

fun HelloWorld(){
  println("Hello World")
}

I heared from Kotlin/JS but there are some difrents from the normal JS and Kotlin

Thanks for helping



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source