I'm having an issue in my JavaScript program, when I submit a form, a message has to be printed in console. but I get this issue:
A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. In a future version of Chrome, the amount of information available in the User Agent string will be reduced.
It is also mentioned that:
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
But I don't know how to do that!