ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
I'm having trouble verifying if the string DOES NOT contain "password" I have the following: if (password.indexOf("password") ){ return false; }but it should return true, how would I accomplish this? if (password.indexOf("password") __?___)
It should return false if password.indexOf("password") != -1
@@mprabuw Ah I see, I was trying to do if (password.indexOf("password") === -1 before. Thank you so much!
I'm having trouble verifying if the string DOES NOT contain "password"
I have the following: if (password.indexOf("password") ){
return false;
}
but it should return true, how would I accomplish this? if (password.indexOf("password") __?___)
It should return false if password.indexOf("password") != -1
@@mprabuw Ah I see, I was trying to do if (password.indexOf("password") === -1 before. Thank you so much!