grammar of expressions
Hi all
Maybe I don't know something...
You can write an expression for the position of a layer in different ways. For example like this
var TargetL = thisComp.layer("GradComp")
[TargetL.width, TargetL.height]
or so
[thisComp.layer("GradComp").width, thisComp.layer("GradComp").height]
When you write it for the first time, the application shows an error
TypeError: Cannot read properties of undefined (reading 'width')
But with the second version of writing, such an error does not occur...

What is the difference???
