2

I'm working in Visual Studio Code for javascript. I'm following along in an assignment and I'm getting the error 'name' is deprecated ts(6385). I'm not sure why it won't run after I've declared the variable?

let name = 'John'
let score = 103
console.log(name)

I found a similar question here but that person defined their variable twice. Mine is only defined once.

casualchicken
  • 21
  • 1
  • 3
  • What is the exact warning you're getting? –  Apr 16 '21 at 15:42
  • Exact error is "lib.dom.d.ts(19619, 5): The declaration was marked as deprecated here." – casualchicken Apr 16 '21 at 15:54
  • The marked duplicate only defines the variable once, too. The second line is an *assignment*, but does not re-declare the variable. –  Apr 16 '21 at 16:02

0 Answers0