# Word Blanks challenge please help

**URL:** <https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [July 31, 2019, 12:02pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195 "2019-07-31T12:02:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koder90](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/koder90/32/120569_2.png) [@Koder90](https://forum.freecodecamp.org/u/Koder90)\
**Post date:** [July 31, 2019, 12:02pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/1 "2019-07-31T12:02:39Z")

</div>

**Tell us what’s happening:**

````auto
This is a word blanks challenge. I am suppose to make a sentence using provided words with the variables myAdjective...and so on. Can't get the code right. I appreciate a hint maybe?
**Your code so far**
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "the "+ myAdjective + myNoun + myVerb + " ran across the street " + myAdverb;
var myAdjective="big";
var myNoun="dog";
var myVerb="ran";
var myAdverb="quickly";
  // Your code above this line
  return result;
}

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

````

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36`.

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/word-blanks)**
>
> Learn to Code — For Free

---

<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:** [July 31, 2019, 12:36pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/2 "2019-07-31T12:36:45Z")

</div>

> [@Koder90](#):
>
> var myAdjective=“big”; var myNoun=“dog”; var myVerb=“ran”; var myAdverb=“quickly”;

first, this doesn’t have an effect as t is after the definition of `result` it is not needed and also wrong because those variables have already a value

you are not passing because you don’t have “non word characters” between the passed in words, in simple words: you are missing spaces

`result` has these values with the two sets of words (the variables take a different value for each of the tests):

```javascript
"the bigdogran ran across the street quickly"
"the smallcathit ran across the street slowly"

```

---

<div class="post-metadata">

**Author:** ![Koder90](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/koder90/32/120569_2.png) [@Koder90](https://forum.freecodecamp.org/u/Koder90)\
**Post date:** [July 31, 2019, 12:49pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/3 "2019-07-31T12:49:55Z")

</div>

Ok, thank you very much for your response 👍

---

<div class="post-metadata">

**Author:** ![lucassorenson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lucassorenson/32/115883_2.png) [@lucassorenson](https://forum.freecodecamp.org/u/lucassorenson)\
**Post date:** [July 31, 2019, 1:00pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/4 "2019-07-31T13:00:36Z")

</div>

> [@ILM](#):
>
> > var myAdjective=“big”; var myNoun=“dog”; var myVerb=“ran”; var myAdverb=“quickly”;
> 
> first, this doesn’t have an effect as t is after the definition of `result` it is not needed and also wrong because those variables have already a value

To expand upon this, you do not want to be assigning these values yourself. These are defined when the function is called.

`wordBlanks("dog", "big", "ran", "quickly")` assigns those 4 words to the 4 variables you will use, so you do not need to assign them yourself. That way, no matter what sentence we wanted to make, we just pass the words we want into the function. ex `wordBlanks("man", "tall", "walked", "slowly")`.

---

<div class="post-metadata">

**Author:** ![Koder90](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/koder90/32/120569_2.png) [@Koder90](https://forum.freecodecamp.org/u/Koder90)\
**Post date:** [August 1, 2019, 8:54pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/5 "2019-08-01T20:54:11Z")

</div>

I solved it. The problem was I suck at contaneting haha. Did not put + on both sides of my vars. Thank you amyway.

---

<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 25, 2021, 12:24pm UTC](https://forum.freecodecamp.org/t/word-blanks-challenge-please-help/300195/6 "2021-01-25T12:24:01Z")

</div>


