我有一個關於JavaScript的結果的問題,因爲我不太瞭解它。 爲什麼,如果我使用此代碼它得到了一個結果:javascript中的[1] [1]和[1] [0]的結果
var a =[1][1];
var b = [1][0];
if(a){console.log(true);}else{console.log(false);} --> returns false
if(b){console.log(true);}else{console.log(false);} --> returns true
誰能幫我解釋的JavaScript如何解釋這個結果的準確方法是什麼? 非常感謝!
最好的問候, 維克多
非常感謝您!我現在明白了。在時間限制消失後,我會給出答案:) – Victor