Here is my Javascript code on VS Code:
In the console.log(name variable);
the name
variable is displayed with a strikethrough symbol on VS Code. But the result showing on my browser is right (no error).
Also, the tooltip shown on VS Code is "const name : void
".
The same thing is happening if I use
document.getElementById('demo10').innerHTML = name;
or
document.write(name);
var name = 'Smith';
document.getElementById('demo10').innerHTML = name;
console.log(name);