📅  最后修改于: 2022-03-11 14:48:24.334000             🧑  作者: Mango
var array = ['a','b','c','d','e','f','g']
for(var i = 0; i < array.length ; i++){
if ((array[i] != 'b') && (array[i] != 'f')){
console.log(array[i])
}
}
/*
if statement and u need && and number of statements needs same number of ()
every letter needs own statement and != means not
*/