JavaScript Interview Questions and Coding Problems - Part 1
⭐ Write a JavaScript function to check whether the given an input is an array or not.
There are two ways :
1) Array.isArray()
function checkArray(input){
return Array.isArray(input);
}
console.log(1); // false
console.log([]); // tr...
harshaldongaredoc.com6 min read