S 5e4401abd24a1ec9acd4159946f33876 javascriptの真偽値

var a = null;
console.log("a == undefined : ", a == undefined);//true
console.log("a == false : ", a == false);//false
console.log("!a : ", !a);//true
console.log("typeof(a) : ", typeof(a));//object

var b = '0';
console.log("b == 0: ", b == 0);//true
console.log("b ==false: ", b == false);//true
console.log("b =='': ", b == '');//false

もしかして

    他の人の「javascriptの真偽値」

    S 5e4401abd24a1ec9acd4159946f33876

    関西大学総合情報学部2007年卒。 卒業後「非同期」「主観事典」をテーマにした会社設立。パンデイロやvimなどの打楽器が好き。 Backbone.js 千利休 木村蒹葭堂

    (9773words)

    最新

      最新エントリ

        関連ツイート