JSFiddle - React, Tailwind, and code Playground

JavaScript

let a = 0; 
let b = 1;

if (++a || b++) {
  console.log(a); // 1
  console.log(b); // 1, 沒被執行
}