Hi! Im new to programming experience so of course im pretty noob and maybe my consult was already answered. In the JS exorcices i have a problem with the exercise 7/10 of Variables.
Problem is, when i see the results with console.log() it has no Syntax or Structure Error so… I have no idea what’s going on! Im totally stuck in this one. Thx in advance!
Create a variable named
favoriteAnimal and set it equal to your favorite animal.
console.log() to print
'My favorite animal: ANIMAL' to the console. Use string concatenation so that
ANIMAL is replaced with the value in your
let favoriteAnimal = “Capibara”;
console.log ("My favorite animal is " + favoriteAnimal + “.” );
let ANIMAL = favoriteAnimal;
console.log ("My favorite animal: " + ANIMAL + “.”);
My favorite animal is Capibara.
My favorite animal: Capibara.