I am currently taking the course on JavaScript and I have reached lesson Objects n° 2/11. The 3rd question is not validating even though I think I have written the correct code, which is:
let robot = {
model: ‘1E78V2’,
energyLevel: 100,
provideInfo() {
return I am ${this.model} and my current energy level is ${this.energyLevel}.
}
};
console.log(robot.provideInfo());
Can someone help me or send me the solution? Thank you.
And please post a link to the lesson so we can see the instructions. The syntax of your code seems ok as far as I can tell from the unformatted code, but you might have missed something from the instructions.
I can’t see what you did wrong, so I guess that is the validation being nitpicky. You could try to use simple quotemarks rather than backticks for the other properties.
it’s always wrong i think the console.log(robot.provideInfo()); is correct but the system say: " Did you call console.log() and pass in robot.provideInfo() ?"