wumble
New member
Hallo,
ich verzweifel gerade an folgendem Problem:
typeof gibt bei beidem String aus. Doch console.log sagt mir false.
und
ergibt
kann mir jemand sagen warum dabei false raus kommt?
ich verzweifel gerade an folgendem Problem:
Code:
var tag = $(this).html().toString();
console.log(typeof tag);
console.log(typeof 'commercial');
console.log(tag == 'commercial');
typeof gibt bei beidem String aus. Doch console.log sagt mir false.
und
Code:
console.log('commercial');
console.log(tag);
ergibt
commercial
commercial
kann mir jemand sagen warum dabei false raus kommt?