Result of FOR-loop if there is no related item

Comments

1 comment

  • Hamid

    Have tried to add the else statement after the if !

    if (str[i].indexOf("searchstring_1") === 0) {
    total += num[i];
    } else {null}

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk