// Longhand let test: boolean; if (x > 100) { test = true; } else { test = false; } // Shorthand let test = x > 10 ? true : false; //or we can ...
確定! 回上一頁