Course Content
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
Output Using Variables 2/2
Task
A variable named country
has been given to you. Your task is, using the above variable, to print the statement My country is USA and I love my country
in the console window using console.log
Summary:
- The
console.log()
in JavaScript is used to display output to the users. - JavaScript support both single-quotes as well as double-quotes.
- Variables can also be passed into the
console.log()
and they have to be separated by a comma,
.
Thanks for your feedback!
Output Using Variables 2/2
Task
A variable named country
has been given to you. Your task is, using the above variable, to print the statement My country is USA and I love my country
in the console window using console.log
Summary:
- The
console.log()
in JavaScript is used to display output to the users. - JavaScript support both single-quotes as well as double-quotes.
- Variables can also be passed into the
console.log()
and they have to be separated by a comma,
.
Thanks for your feedback!
Output Using Variables 2/2
Task
A variable named country
has been given to you. Your task is, using the above variable, to print the statement My country is USA and I love my country
in the console window using console.log
Summary:
- The
console.log()
in JavaScript is used to display output to the users. - JavaScript support both single-quotes as well as double-quotes.
- Variables can also be passed into the
console.log()
and they have to be separated by a comma,
.
Thanks for your feedback!
Task
A variable named country
has been given to you. Your task is, using the above variable, to print the statement My country is USA and I love my country
in the console window using console.log
Summary:
- The
console.log()
in JavaScript is used to display output to the users. - JavaScript support both single-quotes as well as double-quotes.
- Variables can also be passed into the
console.log()
and they have to be separated by a comma,
.