I don't know the exact answer to this question, but I will add a comment. Each browser (Chrome, Mozilla, etc.) has different features. Features that can be supported in some browsers may not be supported in others. Therefore, each browser may interpret JavaScript codes differently. Let me know if the answer is wrong. I wish you success.
- Different browsers interpret JavaScript differently.