---
title: "Discussion on \"JavaScript Interview Questions and Coding Problems - Part 1\" | Hashnode"
description: "Discussion on \"JavaScript Interview Questions and Coding Problems - Part 1\". ⭐ Write a JavaScript function to check whether the given an input is an array or not.\n\nThere are two ways :\n 1) Array.isArray()\n function checkArray(input){\n     return Array.isArray(input);\n }\n\n console.log(1);    // false\n console.log([]);    // tr..."
url: "https://hashnode.com/posts/javascript-interview-questions-and-coding-problems/65fb0c099a8812afd2cb87e1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Interview Questions and Coding Problems - Part 1](https://harshaldongaredoc.com/javascript-interview-questions-and-coding-problems?utm_source=hashnode&utm_medium=feed)

⭐ 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...

Mar 20, 2024 · 6 min read · harshaldongaredoc.com  
Updated Jun 1, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Harshal Dongare](https://hashnode.com/@heyHarshal)

@heyHarshal · Maharashtra, India

  
[View profile](https://hashnode.com/@heyHarshal)

A software developer

B. Tech IT '20

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
