vendredi 17 mai 2019

How to use the if comparison function to find the value of a piece of text

It is necessary in the operator to compare whether the text contains the value "100" in the answer should be god = 10

function myFunctiontest566() {
 var god = 16;
 var test = "test 100 pups"
 if(test == "*100*") {var god = 10;}
 }

Aucun commentaire:

Enregistrer un commentaire