---
title: "Discussion on \"JS Coding Questions\" | Hashnode"
description: "Discussion on \"JS Coding Questions\". Q. Write a program to check for duplicates in an array, it the distance between two duplicate items it less than a specified amount.\nconst arr1 = [3, 1, 5, 7, 9, 5]; \n\nfunction checkDuplicates(arr, dis) {\n    const map = {};\n\n    for(let i = 0; i < a..."
url: "https://hashnode.com/posts/js-coding-questions/5f687a0935d6463d2b5f95ca"
---

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

Discussion

# [JS Coding Questions](https://blog.biswa.co/js-coding-questions?utm_source=hashnode&utm_medium=feed)

Q. Write a program to check for duplicates in an array, it the distance between two duplicate items it less than a specified amount. const arr1 = \[3, 1, 5, 7, 9, 5\]; function checkDuplicates(arr, dis) { const map = {}; for(let i = 0; i < a...

Sep 21, 2020 · 2 min read · blog.biswa.co  
Read the article

## Written by

[Biswaranjan Rout](https://hashnode.com/@routbisu)

@routbisu · Singapore

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

Frontend Engineer in ❤ with JavaScript

I have experience in developing web applications and APIs using Nodejs / Full Stack Javascript (MongoDB, Express.js, Nodejs, React.js, Vue.js, Redux). My new interests include - Vue.js, Microfrontend Architecture, React Native, MobX, WebVR, etc. I put a strong emphasis on writing clean, efficient, and maintainable code that people can understand. I enjoy being challenged to develop creative muscle and master new technologies. If you would like to get in touch, please head on to https://biswa.co shoot me an email at mail@biswa.co and I’ll try to get back to you!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
