really javascript noob question im confused how to fix the following I am trying to declare my name and print it [duplicate]

let name = 'Gustavo Payano'

console.log(name)

I get this error

const name: void
@deprecated

'name' is deprecated.ts(6385)
lib.dom.d.ts(17693, 5): The declaration was marked as deprecated here.

but I am litterly doing the same thing as the guy in the udemy course. What does this mean and how do you fix it?