Is there a Javascript equivalent of the python \'for-else\' loop, so something like this:
searched = input(\"Input: \"); for i in range(5): if i==searched:
In these cases you can do a straight check for the value
if (!(searched in range(5))) { console.log("No match found!"); }else{ console.log(searched + " was found!"); }