偽の用心棒| FreeCodeCamp
Falsy Bouncer Freecodecamp
タイトルを取得する意味はないはずです...
他の誰かのコード
function bouncer(arr) { // Don't show a false ID to this bouncer. return arr.filter(isTrue) } function isTrue(ele){ if( ele ){ return ele } } bouncer([7, 'ate', '', false, 9])
function isjia(b) { var x = Boolean(b) return x } function bouncer(arr) { // Don’t show a false ID to this bouncer. var filtered = arr.filter(isjia) return filtered } bouncer([7, “ate”, “”, false, 9])
function bouncer(arr) { // Please write your code here for(var i=0i を書きました