$\require{cancel}$

Basic Javascript: Some control structures