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

    • Introducing GenAI Features in Catalyst QuickML

      Hi everyone, Building machine learning models can often feel slow and complex, especially when teams wait for perfect certainty before testing their ideas. But in reality, faster progress comes from early experimentation—trying out models quickly, learning
    • Announcing Deprecation of Catalyst File Store, Event Listeners, and Cron

      We would like to announce that the following Catalyst features are now in their deprecation phase and will reach End Of Life (EOL) on 30 April, 2026- Catalyst File Store Catalyst Event Listeners Catalyst Cron New users who sign up for Catalyst from today
    • React Nexus 2025 Recap: Catalyst Slate in Action!

      Hey Catalyst Community! We recently attended the React Nexus 2025 conference, an exciting gathering for frontend enthusiasts and React developers. Our team had an incredible time presenting and conducting a hands-on workshop on Catalyst Slate, our streamlined
    • [Webinar] A hands-on guide to Catalyst Stratus

      Have you used Catalyst Stratus yet? It’s an object storage service that makes it easy to handle large files — whether they're coming from your Catalyst app or other Zoho apps. We’re hosting a live coding session where you’ll build a working prototype
    • Catalyst Video Tutorials!

      Hello everyone! We’ve been brewing something exciting behind the scenes, and we’re thrilled to finally share it with you- Catalyst video tutorials are here! We recognized that videos are the predominant medium for learning and discovery these days, so

      Catalyst Community