So whether you enable or disable Javascript (JS) on the browser, they still have ability to fingerprint you
Ofc, disabling Javascript definitely provides the information that you are one of few users which has disabled Javascript and is thus a pretty good fingerprint by itself.
But if you choose to disable JS, they only get lesser device info to deannonymize you through fingerprinting
https://www.deviceinfo.me/
AFAIK the only way to go in order to defeat browser fingerprinting with using multiple device for different purpose as following
Private Device
You could disabled JavaScript globally, but allow JS to run on trusted websites (when beneficial) like GOS forum, privacyguide forum, etc. If you just want to read an article, but it doesn' t work or broken without running JS then you can consider this website does not respect your privacy and you can move on to another website ;)
Entertainment Device
Ofc you must enable JS globally for watching movie, Gaming, social media, shopping, etc
Disabling JS will make it stand out, but technically it also will make it harder for fingerprinting
If many privacy conciousness user doing it, it will make a game changer to defeat browser fingerprinting globally