'b' + 'a' + + 'a' + 'a').toLowerCase() (
'banana'
geeknees
April 25, 2024
if(!false){
console.log('falseは、falsyです')
}
if(!null){
console.log('nullは、falsyです')
}
if(!undefined){
console.log('undefinedは、falsyです')
}
if(!''){
console.log('空文字は、falsyです')
}
if(!0){
console.log('0は、falsyです')
}
if(![]){
console.log('[]は、falsyです')
}
if(!{}){
console.log('{}は、falsyです')
}
if(!NaN){
console.log('NaNは、falsyです')
}
if(Infinity){
console.log('Infinityは、truthyです')
}
falseは、falsyです
nullは、falsyです
undefinedは、falsyです
空文字は、falsyです
0は、falsyです
NaNは、falsyです
Infinityは、truthyです