JSFiddle - React, Tailwind, and code Playground

JavaScript

var x = 0
//if (6 || 5 && (x = 1)) document.write(x);
if (six() || five() && (x = one())) document.write(x);

function six(){
  console.log('six')
  return 6
}
function five(){
  console.log('five')
  return 5
}
function one(){
  console.log('one')
  return 1
}