Telescopes collect wavelength data from the electromagnetic spectrum. Each telescope has specific wavelengths that the optics, thermal, or elemental equipment is designed to capture. No specific space telescope covers the entire electromagnetic spectrum.
It’s a tricky question as there are two possible answers. 1. The JWST is in a halo orbit in the L2 area. One full rotation around the L2 Lagrange area is completed every six months. 2. The JWST is also in orbit around the sun.