How do I compare two variables containing strings in JavaScript?

前端 未结 4 593
太阳男子
太阳男子 2020-12-30 01:34

I want compare two variables, that are strings, but I am getting an error.



        
4条回答
  •  甜味超标
    2020-12-30 01:58

    instead of using the == sign, more safer use the === sign when compare, the code that you post is work well

提交回复
热议问题