This script shows something in a console:

  • function main(workbook: ExcelScript.Workbook) {
      // Get the active worksheet.
      let myvariable=1;
      console.log(myvariable)
    }