Back to list
Views:   0
Replies:  0
Archived
,
Reply 1
This should do it.

<script>
        var testString = "The language we use today is JavaScript";

        function doesStringExist(input, token) {
            return input.indexOf(token) > 0;
        }

        alert(doesStringExist(testString, "today"));

    </script>

 
King Wilder, Sep 21, 2014
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas