After I type:
console.log(“It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation +”.");
I get the error:
You should log to the console “It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).” and add the values of the variables.
I have tried all variations, adding / removing spaces etc. Any help would be greatly appreciated, Thanks in advance.
Your code so far
console.log ("Hello! I'm your coding fun fact guide!");
let botName = "Boris";
let botLocation = "the Interweb";
let favoriteLanguage = "binary";
console.log ("My name is "+ botName +" and I live on " + botLocation +".");
console.log ("My favorite programming language is " + favoriteLanguage +".");
let codingFact = "In " + favoriteLanguage + " you only use the numbers 1 and 0";
console.log (codingFact);
codingFact = "Machine Code is another name for " + favoriteLanguage + " code";
console.log(codingFact);
codingFact = "Machines can read " + favoriteLanguage + " easily, whereas people need it to be compiled into language-like code";
console.log(codingFact);
codingFact = "A compiler is used to translate "
+ favoriteLanguage + " into a more readable language like C or Java.";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation +".");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
I thought that I had an extra one in, so I cut it out then I get an error saying to assign codingFact a value. As the code stands above, I get a tick (on the left) for the first 14 points, and an X for the goodbye log. I know it is probably an obvious error to everyone else, but I can’t see it!
also when in doubt, comment your code, in this way for example there is each user story with the line of codes that satisfy it:
// 1
console.log ("Hello! I'm your coding fun fact guide!");
// 2
let botName = "Boris";
let botLocation = "the Interweb";
let favoriteLanguage = "binary";
// 3
console.log ("My name is "+ botName +" and I live on " + botLocation +".");
// 4
console.log ("My favorite programming language is " + favoriteLanguage +".");
// 5
let codingFact = "In " + favoriteLanguage + " you only use the numbers 1 and 0";
// 6
console.log(codingFact);
// 7
codingFact = "Machine Code is another name for " + favoriteLanguage + " code";
// 8
console.log(codingFact);
// 9
codingFact = "Machines can read " + favoriteLanguage + " easily, whereas people need it to be compiled into language-like code";
// 10
console.log(codingFact);
// ??
codingFact = "A compiler is used to translate "
+ favoriteLanguage + " into a more readable language like C or Java.";
console.log(codingFact);
// 11
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation +".");
there are two lines that can’t be assigned to any user story