168
rated 0 times
[
175]
[
7]
/ answers: 1 / hits: 5152
/ 3 Years ago, sat, march 27, 2021, 12:00:00
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);
More From » visual-studio-code