---
title: "Discussion on \"Two Sum Problem | JavaScript\" | Hashnode"
description: "Discussion on \"Two Sum Problem | JavaScript\". Here I have given a solution for the 'Two Sum' problem, using JavaScript. If you have any better solution please let me know bellow.\nGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to tar..."
url: "https://hashnode.com/posts/two-sum-problem-javascript/663898a70fd2a624d4f13a6e"
---

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

Discussion

# [Two Sum Problem | JavaScript](https://karthikshetty.hashnode.dev/two-sum-problem-javascript?utm_source=hashnode&utm_medium=feed)

Here I have given a solution for the 'Two Sum' problem, using JavaScript. If you have any better solution please let me know bellow. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to tar...

May 6, 2024 · 2 min read · karthikshetty.hashnode.dev  
Read the article

-   [#two-sum-problem](https://hashnode.com/tag/two-sum-problem)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array](https://hashnode.com/tag/array)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)

## Written by

[Karthik Shetty](https://hashnode.com/@Karthikshetty)

@Karthikshetty · India

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

Let's do something differently.

Hey, folks Karthik here. I am a front-end developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
