# What is wrong in my code.. i m sorry I am totally new to coding stuff

**URL:** <https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848>\
**Category:** General\
**Created:** [August 9, 2017, 3:33pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848 "2017-08-09T15:33:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shritrip](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@shritrip](https://forum.freecodecamp.org/u/shritrip)\
**Post date:** [August 9, 2017, 3:33pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/1 "2017-08-09T15:33:38Z")

</div>

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {  
var result = “”;  
// Your code below this line  
myNoun=“dog”;  
myAdjective=“big”;  
myVerb=“ran”;  
myAdverb=“quickly”;

result = “My " + myNoun+ " is” + myAdjective + "a "+ myVerb+ " hero " + myAdverb + " ";

// Your code above this line  
return result;  
}

// Change the words here to test your function  
wordBlanks(“dog”, “big”, “ran”, “quickly”);

---

<div class="post-metadata">

**Author:** ![lionel-rowe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lionel-rowe/32/41877_2.png) [@lionel-rowe](https://forum.freecodecamp.org/u/lionel-rowe)\
**Post date:** [August 9, 2017, 3:46pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/2 "2017-08-09T15:46:18Z")

</div>

Your code will always return the string "My dog isbiga run hero quickly ". Aside from the fact that the sentence isn’t grammatical, it returns the same result regardless of the arguments passed in, because it’s using the variables you’ve set _within_ the function rather than those arguments.

---

<div class="post-metadata">

**Author:** ![kevnbot](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevnbot/32/14853_2.png) [@kevnbot](https://forum.freecodecamp.org/u/kevnbot)\
**Post date:** [August 9, 2017, 3:49pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/3 "2017-08-09T15:49:41Z")

</div>

I tried your code and had issues with some of your quotes. Im not sure if they were copied from somewhere else, but I deleted your quotes that didnt work and put in new ones. Here is the code, as you have it, working. but you will still need to account for lionel-rowe’s advice.

myNoun=“dog”;  
myAdjective=“big”;  
myVerb=“ran”;  
myAdverb=“quickly”;

result = "My " +myNoun+ " is " +myAdjective+ " a "+ myVerb+ " hero " + myAdverb + " ";

---

<div class="post-metadata">

**Author:** ![lionel-rowe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lionel-rowe/32/41877_2.png) [@lionel-rowe](https://forum.freecodecamp.org/u/lionel-rowe)\
**Post date:** [August 9, 2017, 3:53pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/4 "2017-08-09T15:53:19Z")

</div>

Needs wrapping in backticks.

````

```
Triple backticks for pasting multiline code
```

````

---

<div class="post-metadata">

**Author:** ![anon52159105](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@anon52159105](https://forum.freecodecamp.org/u/anon52159105)\
**Post date:** [August 11, 2017, 2:47am UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/5 "2017-08-11T02:47:18Z")

</div>

The main issue is you were using `“` instead of `"` your odd quote symbol wasn’t recognized by Javascript and caused the issue. Correct example:

```auto
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
// Your code below this line
myNoun="dog";
myAdjective="big";
myVerb="ran";
myAdverb="quickly";

result = "My " + myNoun + " is " + myAdjective + " a " + myVerb + " hero " + myAdverb + " ";

// Your code above this line
return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");

```

Hope this helped 🙂

---

<div class="post-metadata">

**Author:** ![lionel-rowe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lionel-rowe/32/41877_2.png) [@lionel-rowe](https://forum.freecodecamp.org/u/lionel-rowe)\
**Post date:** [August 11, 2017, 1:45pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/6 "2017-08-11T13:45:15Z")

</div>

Again, it’s all about the backticks. Discourse forums automatically convert straight quotes to curly quotes unless they’re explicitly marked up as code. It’s unlikely anyone’s actually typing it into the code editor like that (though input methods for e.g. Chinese could potentially cause similar mistakes if you’re not careful).

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:42pm UTC](https://forum.freecodecamp.org/t/what-is-wrong-in-my-code-i-m-sorry-i-am-totally-new-to-coding-stuff/140848/7 "2021-01-17T20:42:53Z")

</div>


