### Calculate Earth and Moon Positions (JavaScript) Source: https://www.celestialprogramming.com/vsop87-multilang Demonstrates how to compute the positions of the Earth and Moon using the VSOP87A library. Requires Julian date and Earth-Moon Barycenter positions as input. ```javascript const jd=2457987.267731481; //TDB time scale const t=(jd - 2451545.0) / 365250.0; const earth=vsop878a.getEarth(t); const emb=vsop87a.getEmb(t); const moon=vsop87a.getMoon(earth,emb); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.