---
title: "Discussion on \"Recursion in Javascript\" | Hashnode"
description: "Discussion on \"Recursion in Javascript\". Question 1: Sum all numbers\nWrite a function called sumRange. It will take a number and return the sum of all numbers from 1 up to the number passed in.\nSample: sumRange(3) returns 6, since 1 + 2 + 3 = 6.\nlet count = 1; let data = 0; function sumRang..."
url: "https://hashnode.com/posts/recursion-in-javascript/640639db3c15a72b6ece7bb8"
---

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

Discussion

# [Recursion in Javascript](https://devbunney.hashnode.dev/recursion-in-javascript?utm_source=hashnode&utm_medium=feed)

Question 1: Sum all numbers Write a function called sumRange. It will take a number and return the sum of all numbers from 1 up to the number passed in. Sample: sumRange(3) returns 6, since 1 + 2 + 3 = 6. let count = 1; let data = 0; function sumRang...

Mar 6, 2023 · 1 min read · devbunney.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Biplav Mazumdar](https://hashnode.com/@DevBee)

@DevBee

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

Dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
