let fruit = 'apple'; let fruits = ["apple", "banana", "mango", "orange", "grapes"]; const isArray = (arr) => Array.isArray(arr); console.log(isArray.(fruit)); //output - false console.log(isArray.(fruits)); //output- true