application/javascript

Obsolete

JavaScript, under a name RFC 9239 made obsolete. Still what some servers send.

Extensions
.js
Header
Content-Type: application/javascript
Registered
Yes, in the IANA media type registry.
Use instead
text/javascript
References
IANA · RFC 4329 · RFC 9239 · nginx · MDN

What servers send

The type each server's own mime.types gives these extensions, as it ships.

ExtensionApache httpd 2.4.69nginx 1.31.6
.js text/javascript application/javascript

The IANA registry also gives this extension to application/node and text/javascript.

Common application types

Every media type, in one table