# Why its not work :(

**URL:** <https://forum.freecodecamp.org/t/why-its-not-work/644213>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 13, 2023, 10:19am UTC](https://forum.freecodecamp.org/t/why-its-not-work/644213 "2023-10-13T10:19:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alixreza](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Alixreza](https://forum.freecodecamp.org/u/Alixreza)\
**Post date:** [October 13, 2023, 10:19am UTC](https://forum.freecodecamp.org/t/why-its-not-work/644213/1 "2023-10-13T10:19:54Z")

</div>

```auto
function functionWithArgs(num1, num2) {

let sum = num1 + num2;

return sum;

};

// Example usage

let result1 = functionWithArgs(1, 2);

console.log(result1); // Output: 3

let result2 = functionWithArgs(7, 9);

console.log(result2); // Output: 16

```

in consol i have 16 and 3  
its accept 16 , but for 3 i have problem

---

<div class="post-metadata">

**Author:** ![bappyasif](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bappyasif/32/190571_2.png) [@bappyasif](https://forum.freecodecamp.org/u/bappyasif)\
**Post date:** [October 13, 2023, 11:15am UTC](https://forum.freecodecamp.org/t/why-its-not-work/644213/2 "2023-10-13T11:15:19Z")

</div>

hello and welcome to fcc forum 🙂

> [@Alixreza](#):
>
> its accept 16 , but for 3 i have problem

what do you mean by that?

happy coding 🙂

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [October 13, 2023, 1:31pm UTC](https://forum.freecodecamp.org/t/why-its-not-work/644213/3 "2023-10-13T13:31:38Z")

</div>

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [April 13, 2024, 1:32am UTC](https://forum.freecodecamp.org/t/why-its-not-work/644213/4 "2024-04-13T01:32:19Z")

</div>

Closed on April 13, 2024, 1:32am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
