Create a Javascript string
console.log()
statement logs the value of the variable text. The variable text has already been declared with an empty string – as indicated by the two single quotes.Fill in the string with some characters and run the code to see if the string is being logged.
const text = '';
console.log('The value of text is: ' + text);
Javascript
Console