How can a value be passed between functions?

  node.js, question

The code section is as follows:

function go(curb_S) {
 console.log(2);
 
 var curb_S_value = parseInt(document.getElementById('curb').style[curb_S]);
 if(curb_S_value < 30 || curb_S_value > 400 ) return;
 Getelementbyid ('curb'). style [curb _ s] = curb _ s _ value-35 plus "px";
 
 bracket
function tunlef(curb_S) {
 
 document.getElementById('curb').style.webkitTransform = 'rotate(-90deg)';
 return curb_S = "bottom";
 bracket
var curb_S = 'left';
 
 document.getElementById('buttonCli').addEventListener('click',function (e) {
 var  inValue  =        document.querySelector('#textIn').value;

/document.querySelector(‘#textIn’).value = ” “;/

switch  (inValue) {
 case 'go' :
 console.log(curb_S)
 go(curb_S);
 break;
 case 'tunlef':
 console.log(curb_S)
 tunlef(curb_S);
 break;
 case 'tunbac':
 tunrig();
 break;
 case 'tunrig' :
 tunbac();
 break;
 bracket
 })

I want the value curb_S to pass effectively, but it seems that it has not changed.

  • -Can you tidy up the code a bit? . .