dimanche 2 décembre 2018

How do I make this else- if statement work by saying in a part of a string isn't equal to a location in the string?

The header is :

else if(nameOfWebsite.indexOf("http://") == 0 && nameOfWebsite.indexOf("www.") !== 7)

the last part of it, !== 7 how do I make it compile so it still works like how it is supposed to?

Aucun commentaire:

Enregistrer un commentaire