There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
I am having trouble deciding where to put the console.log() statement inside the if statement. I tried it before and after the word if but it didn’t work.
Where does this go?
console.log('Word value inside of if statement: ’ + word);
Hello,
The error is the “!” before the word.match, but don’t delete it in the first step.
Follow the steps:
Step 1: Just run it.
Step2: type console.log(word); before the if.
Step 3: copy the code console.log('Word value inside of if statement: ’ + word); before the if statement.
Step 4: delete the !
When I have came to step 3 into Locating Silent Bugs, i could not do the task, but i wrote necessary ’ console.log(‘Word value inside of if statement: ’ + word);’. Only when I corrected the mistake at ‘if (!word.match(’ ‘))’ to ‘if (word.match(’ ‘))’ i can continue. In the step 4 i changed nothing, just ‘run’ and that`s it.
p.s. Sorry for my maybe bad English and maybe bad explain.