Output Using Variables 2/2
Compito
Swipe to start coding
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
Soluzione
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,
.
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 3
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 2
Output Using Variables 2/2
Scorri per mostrare il menu
Compito
Swipe to start coding
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
Soluzione
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,
.
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 2Sezione 1. Capitolo 3
single