Need help with Basic I/O function

Need help with Basic I/O function

Can I get some help here? I am a bit of a newbie to nodejs but I know enough I think to do this.  I can get this to work on nodejs locally, however, as a basic i/o function I get an error.   Basically, when I invoke the basic function I would like to run a function that invokes other functions or modules and once its completed return something in the output.   however, I get this error (below is my example code)

the error I get is 
{
    "error": "ReferenceError: variablea is not defined\n    at module.exports (/catalyst/index.js:15:19)\n    at CUSTOMER_ROUTE (/var/runtime/index.js:143:9)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
}
  1. const catalyst = require('zcatalyst-sdk-node');
    module.exports = (context, basicIO) => {
    const app = catalyst.initialize(context);
    //This app variable is used to access the catalyst components.
    //You can refer the SDK docs for code samples.


    function runfunction() {

    var variablea = 'I am a variable';

    }

    runfunction();
    basicIO.write(variablea);

    context.close();
    }


    • Announcements

    • [Webinar] Zero manual sync: Enabling smart HR–payroll workflows with unified automation

      Hello everyone, If your HR and payroll teams are still relying on manual exports, spreadsheet reconciliations, or constant back-and-forth coordination to keep employee data aligned, this session is for you. . We’re hosting a live webinar featuring Kyle
    • [Webinar] How Raptee.HV accelerates its EV platform

      Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.

      Catalyst Community