JSFiddle - React, Tailwind, and code Playground

by ArtJH

JavaScript

function test1() {
  let x = 1;

  test2(x);
}

function test2(a1) {
 
	let c, y;
  
  if( a1 != ''){
  // cj,snbt
  	 c = y + a1;
  } else {
  // валижация
   	 y = 2;
  }

}

test1();
test2();