When I put this in, the code, I get these errors,
" // running tests
- You should log “Hello! I’m your coding fun fact guide!” to the console.
- You should log to the console “My name is (botName) and I live on (botLocation).” and add the variables to the string.
- You should log to the console “My favorite programming language is (favoriteLanguage).” and add the variable to the string.
// tests completed
// console output
Hello! I’m your coding fun fact guide
My name is Liam and I live on Mars
My favorite programming language is C++
A little fun fact is that C++ is mostly used for video games!
Another fact about C++ is that most code was written in that C type programming languages.
I don’t really know anything else about C++ but that’s why I’m trying to learn.
It was fun sharing these facts with you. Goodbye! - Liam from Mars. “
Am I doing anything wrong, is it because I used a different method than:
console.log(‘text here’ + whateverImAdding + ‘more text here’);
console.log('Hello! I\'m your coding fun fact guide');
let botName = 'Liam';
let botLocation = 'Mars';
let favoriteLanguage = 'C++';
console.log(`My name is ${botName} and I live on ${botLocation}`);
console.log(`My favorite programming language is ${favoriteLanguage}`);
let codingFact = `A little fun fact is that ${favoriteLanguage} is mostly used for video games!`;
console.log(codingFact);
codingFact = `Another fact about ${favoriteLanguage} is that most code was written in that C type programming languages.`;
console.log(codingFact);
codingFact = `I don't really know anything else about ${favoriteLanguage} but that's why I'm trying to learn.`;
console.log(codingFact);
console.log(`It was fun sharing these facts with you. Goodbye! - ${botName} from ${botLocation}.`);