<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Make sure you have defined all the variables!
```
// This array holds the words we are going to choose from.
// Feel free to add new words!
var words = [âcatâ, âtreeâ, âswingâ, âaroundâ, âscientistâ];
// This function will pick our word
function chooseWord () {
// Write code here
return words[Math.floor(Math.random() * words.length)];
}
<do not remove the three backticks above>
Hi guys,
i know that this is a non-track course, but i want to complete this course at 100%, i'm stuck at 81%, because i can not complete four first exercises. My code does not pass the validation check and all the time I get the same error message on the screen "**Oops, try again. Make sure you have defined all the variables!**". This applies to the first four exercises: **Rules of the Road**, **Blanks for your Answer**, **Replacing a Letter**, **Guess a Letter, Any Letter!**.
I tried to find a solution on the forum [Hangman Game Forum](https://www.codecademy.com/en/forums/javascript-intermediate-tpoPb), but did not find anything useful, that would help me to solve this problem... On the profiles of some of the forum members, I noticed that they have somehow completed this course, because they have received the **course completion badge for Hangman Game**.
I appeal to the guys who have dealt with this course and finished it completely. I would be happy for your help and assistance in this matter.
Thanks,
Mark
This means that it does not work for this exercises: [quote=âmarkkarnaukh, post:1, topic:61564â]
Rules of the Road, Blanks for your Answer, Replacing a Letter, Guess a Letter, Any Letter!.
[/quote]
Regardless of what I tried to do, I keep getting the same error message!
who has more ideas for solutions to this problem? Does someone have any ideas at all?
I noticed a strange thing:
Everyone who got this badge, completed this course in 2012-2013.Could it be that the reason is the version of the browser? Is it even possible to complete this course in general, if i will try to use an older version of the browser?
I would be grateful to anyone who can help to shed light on the issue!
Think you must be right, the code I have already passed with is not passing the exercise anymore.
I canât figure out a workaround either, sorry! Your code is of course correct though.
Where is that text coming from? "Make sure you have defined all the variables!"
Itâs not in the submission test and I donât see it in the page source either, but Iâm not at all good at digging through that
Add a breakpoint where the console reports an error and switch out the error value with undefined
âŚediting it allows for clicking through the whole thing
itâs amazing and unbelievable! I donât know how to express my gratitute towards you for your help! This is truly great!
Iâm not too familiar with the developer tools, it can be said that I am an noob⌠Could you please tell me step by step what I need to do? It will be for me as a good opportunity to see how it works.