I'm trying to calculate a proportional height (while excluding a static height element) from a width that gets passed in via a request (defaults to 560). However, wF.h evaluates to NaN. If I replace this.w with 560 it works, but not when trying to reference the w property of wF. var wF = { w : 560, h : (312 - 42) / (560 / this.w) + 42 }; What gives? I refuse to use two plain vars in succession, be
!["this" inside object](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)