Thank Yisrael. Still have the same problem.
Trying to digest the concept I used a simple function from this site, that is a simple multiplication function.
As you said, I separated the code into two files.
1- backend file (mp.jsw)
//backend mp.jsw file
export function multiply(a, b) {
let res = a*b;
console.log(res)
return a*b;
}
2- frontend file (page code)
import {multiply} from 'backend/mp';
export function button1_click(event) {
//Add your code for this event here:
let c = multiply(3, 4)
console.log(c)
return multiply()
}
But still can’t get the result. Why?