Javascript Refactor If Condition Function Youtube

Javascript Refactor If Condition Function Youtube