The ternary operator. var isCat = true; var pet = isCat ? "cat" : "dog"; console.log(pet);. The code above generates the following result.
確定! 回上一頁