I’ve edited your post 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.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
Thanks for the information.
I am currently on the word blanks challenge in javascript.
When I run my code, I get the error message Uncaught SyntaxError: Unexpected token ‘var’
var myNoun="dog"
var myAdjective="big"
var myVerb="ran"
var myAdverb="quickly"
var wordBlanks = ""// Only change this line;
Here is my code:
var wordBlanks= "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + ".";
console.log(var wordBlanks)
SyntaxError: unknown: Unexpected token (7:12)
5 |
6 | var wordBlanks = "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + ".";
> 7 | console.log(var wordBlanks)
| ^
Please what could be wrong with my string linkup using the + operator?
var myNoun="dog"
var myAdjective="big"
var myVerb="ran"
var myAdverb="quickly"
var wordBlanks = ""// Only change this line;
Here is my code:
var wordBlanks= "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + ".";
console.log(var wordBlanks)
SyntaxError: unknown: Unexpected token (7:12)
5 |
6 | var wordBlanks = "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + ".";
> 7 | console.log(var wordBlanks)
|
what could be wrong with my link up?