I have the following function:
var checkCode=function(codeString){
var ifs=codeString.split("if");
...
}
Is there a way to check if the code fails, as in does not find any if strings to split from in the codeString that is input to the function?