Reputation: 13
I'm working on a project and I got a strange error on my code in line 18 while the dude on YouTube isn't getting an error. Can anyone help me with this error?
Here is the link to the Youtube Video: https://www.youtube.com/watch?v=UCWfdW6hcVA&t=1148s
Upvotes: 0
Views: 33
Reputation: 2072
On line 18, the syntax
`E${lastRow}`
represents a Javascript template literal, where ${lastRow}
will be replaced with the value of lastRow
(presumably an integer so you get a cell reference like E3
).
Template literals should be delimited by backticks (`
), not single quotes ('
). Try replacing the single quotes with backticks.
Upvotes: 1