Answered
Error: Couldn't turn result into numeric value
Hi, I'm using a simple expression and I'm getting this error.

This is the code:
var x = value[0];
var a = thisComp.height/2;
var f = .5;
var y = Math.sin(time*2*Math.Pi*f)*a;
[x,y]
I watched a YouTube tutorial that used this same code (without using var) and it seemed to work, but not to me.