How to compare a value in javascript
问题 I am getting data from some ajax operation, and trying to use javascript to do some conditional checks actually so when i print the response from the ajax like document.write(response) result [object Object] when i print something like document.write(JSON.stringify(response)) result {"status":"failed","login":["This field is required."],"password":["This field is required."]} so above is the actual data i am getting what i am trying to do is if(response.status === 'failed') window.location