1

Let's say I have a JavaScript file containing multiple functions like this:

function a(input){
    return [input,input*2]
}

function b(input){
   return {
       message:`Hello, ${input}!`
   }
}

Is it possible to use QuickJS to call these functions from a C program and to store the returned values in a C array/struct?

Daveman
  • 1,075
  • 9
  • 26

0 Answers0