📌  相关文章
📜  如何打印数组的某些元素 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.334000             🧑  作者: Mango

代码示例1
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 

*/