1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compare array value with string

Discussion in 'Programming/Internet' started by Scarlet., Sep 12, 2018.

  1. Scarlet.

    Scarlet. Guest

    var string1 = "Hello, World";
    var arr = string1.split(",");
    var string2 = "Hello World";

    How do I compare the value of the arr array with the value of the variable string2?

    Login To add answer/comment

Share This Page