Try javascript notebook

javascript
Author

geeknees

Published

April 25, 2024

('b' + 'a' + + 'a' + 'a').toLowerCase()
'banana'
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です
new Date('2024-01-01T00:00:00').getMonth()
0