What are JA3 and JA4?
JA3 hashes the TLS version, cipher suites, extensions, curves and point formats of the ClientHello. JA4 is its successor: readable, sorted so that random extension order does not change it, and with variants for QUIC and HTTP.
Each TLS library — Chrome's BoringSSL, Firefox's NSS, Apple's stack, Go, Python, curl — has its own fingerprint, and JavaScript cannot change it.