My code includes the following-
if(!code1.startsWith(("<video" || "<img"))){return ...}
The code only checks if code1 doesn't start with "<video". If the "<video" is false and "<img" is true, it executes the return code. I am still a learner and hoping for help.