
I am new in learning Javascript and as I was following the tutorial I found that console.log(name); got (name) struck through in such a way claiming it is "Deprecated".
If there is an explanation on what that means or what I should do to remove that strike, I would be really thankful.
Because you used var name = ..., TypeScript thinks you are referring to window.name, which TypeScript considers deprecated. You can fix this error by:
anotherName -var anotherName = 'Bob'
console.log(anotherName)
(() => {
var name = 'bob'
console.log(name)
})()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With