Simple terminology question

Hello,

let myPet = 'armadillo';
console.log('I own a pet ' + myPet + '.'); 
// Output: 'I own a pet armadillo.'

breaking down this piece of code, we have:

let myPet = 'armadillo'; – a declaration of a variable, and an initialization of the variable.
console.log('I own a pet ' + myPet + '.'); – an object, method, and an argument comprised of 3 different strings.
// Output: 'I own a pet armadillo.' – a comment.

Did I get it right?

Mostly.

This is all correct.

This is correct, except there are three arguments, not one argument of three strings. (The arguments are 'I own a pet', myPet, and '.'

This is correct.

Appreciate your help!

1 Like