await is only valid in async function ajax code example
Example: await is only valid in async function
async function start() {
....
const result = await helper.myfunction('test', 'test');
}
async function start() {
....
const result = await helper.myfunction('test', 'test');
}