JSFiddle - React, Tailwind, and code Playground

JavaScript

function firstFunction()
 {
  //Do something;
  return "testing 123";
 }

var test=firstFunction();  // this will grab you the return value from firstFunction();
alert(test);